Related to question How to select distinct field values using Solr? but what I want is the counter.
I want to know how many distinct elements there is in a Solr field. I could get this number by using:
group.field=my_field&group.ngroups=true&group.limit=0
but doing grouping for this seems like an overkill
Is there another way ? Do I have to use JIRA SOLR-1814 ?