Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Solr schema unique key id

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 802
    Comment on it

    Solr schema.xml have a default unique key which is "id". This field has "string" type hence can not be used for sorting. We can not change its type as it is required as "string" because if you have enabled the QueryElevationComponent in solrconfig.xml it requires the schema to have a uniqueKey of type StrField. So if you need to sort your result then add a new field in schema with integer type and perform sorting on that.

    For more information go to schema.xml

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: