Well, that's true -- you can get the total number of facet values if you
ALSO are willing to get back every facet value in the response.
If you've got a hundred thousand or so unique facet values, and what you
really want is just the _count_ without ALSO getting back a very large
response (and waiting for Solr to construct the very large response),
then you're out of luck.
But if you're willing to get back all the values in the response too,
that'll work, true.
On 12/22/2010 11:23 AM, Erik Hatcher wrote:
On Dec 22, 2010, at 09:21 , Jonathan Rochkind wrote:
This won't actually give you the number of distinct facet values, but will give you the
number of documents matching your conditions. It's more equivalent to SQL without the
"distinct".
There is no way in Solr 1.4 to get the number of distinct facet values.
That's not true - the total number of facet values is the distinct number of
values in that field. You need to be sure you have facet.limit=-1 (default is
100) to see all values in the response rather than just a page of them though.
Erik