: lets say you filter your query on something and want to know how many
: distinct "categories" that your results comprise.
: then you can facet on the category field and count the number of facet
: values that are returned, right?

if you count the number of facet values returned you are getting a "count 
of disctinct values"

if you just want the list of distinct values in a field (for your whole 
index) there TermsComponent is the fastest way.

if you want the list of distinct values across a set of documents, then 
facet on that field when doing your query.

"select distinct category from books where bookInStock='true'" is analgous 
to looking at the facet section of...

   rows=0&q=bookInStock:true&facet=true&facet.field=category


-Hoss

Reply via email to