Solr - getting facet counts without returning search results?

i need to return only the facet counts from solr. so i basically want to search over all do*****ents and return the facet counts, but i don't want to return any search results. is this possible?


asked May 16, 2015 in SOLR by rajesh
0 votes

1 Answer

0 votes

setting &facet=true will enable faceting and setting rows=0 will prevent any results being returned. conviently the numfound will show you how many results were found.

answered May 16, 2015 by rajesh