If you don't want the facets sorted by decreasing count (the default), you can specify facet.sort=index to get "index order" ((lexicographic by indexed term)
-Yonik http://heliosearch.com -- making solr shine On Sun, Dec 15, 2013 at 2:08 PM, MC <videm...@gmail.com> wrote: > Hello, > Here is a public API that uses facet fields: > http://golr.berkeleybop.org/select?qt=standard&fl=*&version=2.2&wt=json&indent=on&rows=0&facet=true&facet.field=type&q=document_category:%22annotation%22 > > It looks like the default behavior is to sort facet_counts.facet_fields > (field called 'type' in this case) descending by frequency count among > returned documents. > I'd like to find out if this is a default behavior or if this is an extra > step that Solr is performing and can be somehow turned off? I'd like to use > that data to form a tag cloud and I'd like to avoid the random shuffle step > if that is something that can be turned off in Solr query. > If this is the default result maybe someone could explain how faceted index > works on Solr side, and where does that order come from? I'd like to > understand it better either way. > Thanks, > > M >