1

Usually a solr query with facetting option returns the results in sorted order based on the facet count. When I set the facet limit to -1 the results were not returned in sorted order; this means I have to do the sorting manually in the server side.

Should I need to append anything more in the solr query to get it in a sorted order?

Bart
  • 19,692
  • 7
  • 68
  • 77

1 Answers1

3

please try facet.sort=count

The default facet order is base on the count, descending order, but it will return the index order rather than count desc order if facet.limit is less than 0

Details can be read from Solr Wiki

leoh
  • 10,378
  • 7
  • 28
  • 39