How could I get a count of distinct terms for a given query? For example: The Wiki page http://wiki.apache.org/solr/SimpleFacetParameters has a section "Facet Fields with No Zeros" which shows the query: http://localhost:8983/solr/select?q=ipod&rows=0&facet=true&facet.limit=-1&facet.field=cat&facet.mincount=1&facet.field=inStock and returns results where the inStock field has two facet counts (false is 3, and true is 1)
But what I would want to know is how many distinct values were found ( in this case it would be 2 / true and false ). I realize I could count the number of terms returned, but if the set were large that would be non-performant. Is there a better way? Thanks, Tim