You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Lance Norskog <go...@gmail.com> on 2008/07/25 04:29:39 UTC

Simple mistake in Wiki

Should this refer to facet.mincount instead of facet.limit? 
"The default is true if facet.limit is greater than 0, false otherwise."
 
http://wiki.apache.org/solr/SimpleFacetParameters
 
facet.sort

Set to "true", this parameter indicates that constraints should be sorted by
their count. If "false", facets will be in their natural index order
(unicode). For terms in the ascii range, this will be alphabetically sorted.
The default is true if facet.limit is greater than 0, false otherwise. 

This parameter can be specified on a per field basis. 



Re: Simple mistake in Wiki

Posted by Chris Hostetter <ho...@fucit.org>.
: Should this refer to facet.mincount instead of facet.limit? 
: "The default is true if facet.limit is greater than 0, false otherwise."

No ... if you are limiting the number of total facet constraints you are 
interested in to N, then we assume you want to sort them and get the 
highest N. (as opposed to a random set of N)

facet.mincount is a way of filtering out any constraint whose count is 
below a threshold, but it doesn't influence constraint sorting.

>From SimpleFacets...

    // default to sorting if there is a limit.
    boolean sort = params.getFieldBool(field, FacetParams.FACET_SORT, limit>0);




-Hoss