Solr - Getting facet counts without returning search results
I guess the obvious solution would be to search using a wildcard and specify that you want zero results returned.
That's my solution so far.
Setting facet=true
will enable faceting and setting rows=0
will prevent any results being returned. Conveniently the numFound
will show you how many results were found.