Hello,

Searching for ?q=*:* with facetting turned on gives me the total number
of available constraints, if that is what you mean.


Cheers,



On Tue, 2009-02-03 at 16:03 +0000, Bruno Aranda wrote:

> Hi,
> 
> I would like to know if is there a way to get the total number of different
> facets returned by a faceted search? I see already that I can paginate
> through the facets with the facet.offset and facet.limit, but there is a way
> to know how many facets are found in total?
> 
> For instance,
> 
> Name    Surname
> 
> Peter     Smith
> John      Smith
> Anne     Baker
> Mary     York
> ... 1 million records more with 100.000 distinct surnames
> 
> For instance, now I search for people with names starting with A, and I
> retrieve 5000 results. I would like to know the distinct number of surnames
> (facets) for the result set if possible, so I could show in my app something
> like this:
> 
> 5000 people found with 1440 distinct surnames.
> 
> Any ideas? Is this possible to implement? Any pointers would be greatly
> appreciated,
> 
> Thanks!
> 
> Bruno

Reply via email to