Try q=*:*&group=true&group.field=cat&group.ngroups=true

On 2/4/13 3:53 AM, J Mohamed Zahoor wrote:
Hi

Is it possible to get the distinct  count of a given facet field in Solr?

A query like this  q=*:*&facet=true&facet.field=cat display the counts of all 
the unique categories present like

electronics: 100
applicances:200  etc..

But if the list is big.. i dont want to get the entire list and take a count by 
looping...
Instead if i get a count of the no of items in the list.. i am okay..

SOLR-2242 was doing just that...
But it is not giving a distinct count if i have multiple shards...

Is there any other way to get this?

./Zahoor



Reply via email to