AnsweredAssumed Answered

solr ordering not supported for cm:firstName

Question asked by gvarathan on Apr 26, 2013
Latest reply on Feb 10, 2014 by maddy
Hi,
I am using alfresco enterprise edition 4.1.4 with solr. when i perform a search on user object and perform sort column for cm:firstName.  it is giving below error in the solr console.

2013-04-26 14:35:07,805  ERROR [solr.core.SolrCore] [http-7443-1] java.lang.UnsupportedOperationException: Ordering not
supported for @cm:firstName

it is the same  case for most of the cm fields like cm:firstName, cm:userName, cm:lockOwner.

i had the same issue with my custom model, after looking it the implmetation. i have specified each property in the model with tokenized to both and the problem went away.
                   index enabled="true"
                    atomic:false
                    stored:false
                                       tokenised:both
                     

can you please guide me the best method to fix this in alfresco models

Outcomes