[SOLR-2242] Get distinct count of names for a facet field - ASF JIRA
When returning facet.field=<name of field> you will get a list of matches for distinct values. This is normal behavior. This patch tells you how many distinct values you have (# of rows). Use with limit=-1 and mincount=1.
The feature is called "namedistinct". Here is an example:
Parameters:
facet.numTerms or f.<field>.facet.numTerms = true (default is false) - turn on distinct counting of terms
facet.field - the field to count the terms
It creates a new section in the facet section...
Read full article from [SOLR-2242] Get distinct count of names for a facet field - ASF JIRA
No comments:
Post a Comment