You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Erik Hatcher <er...@ehatchersolutions.com> on 2007/05/01 05:12:25 UTC
Re: numFound for facet results
On Apr 30, 2007, at 11:16 AM, Yonik Seeley wrote:
> On 4/30/07, mirko@sas.upenn.edu <mi...@sas.upenn.edu> wrote:
>
>> 2. I would like to be able to tell how many facet values are there
>> total. (This would be a value like numFound for the results).
>> Is there such a thing or a workaround like for 1.
>
> Number of facet values in the field (independent of the query), or
> number of non-zero facet counts for the particular query?
> The former will be relatively easy, the latter can't really be done
> that efficiently.
I'm sure that the need is the latter. At least for me that would be
helpful.
Even if the faceting had a feature to still compute all the facets
but limit the response to a given amount and provide a total (given
the current constraints) facet values it'd at least reduce the
communication over the wire. I think that'd make a big difference in
performance for one of my applications where we have an unusually
large number of facet values.
Erik