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.
0 Comment(s)