While doing a facet query: example:
- params: { - facet: "true", - indent: "true", - q: "*:*", - facet.field: "loginName", - wt: "json" } By defualt, Solr return 100 Facets. This is fine. If I do "facet.limit=-1", I can get all the facets. Now suppose, there are 100,0000 distinct "loginName"s. How to I get this count directly? Basically, What I am trying to do is to do a query (search query or facet query) and get the total distinct "loginName" in my data. I don't want to do a "facet.limit=-1" and iterate over all the facets. So I am trying to find an alternative. Having a difficult time finding some way to do this. Has anyone tried to do this before? Thanks, Harish