What about using the luke request handler to get the distinct values count? Although it is pretty seriously heavy on a big index, so probably not quite workable in your case.

        Erik

On Feb 4, 2009, at 12:54 PM, Yonik Seeley wrote:

On Wed, Feb 4, 2009 at 5:42 AM, Bruno Aranda <brunoara...@gmail.com> wrote:
Unfortunately, after some tests listing all the distinct surnames or other fields is too slow and too memory consuming with our current infrastructure. Could someone confirm that if I wanted to add this functionality (just count
the total of different facets) what I should do is to subclass the
SimpleFacets class and create an extended FacetComponent that returns the
size of the term counts list instead of the list itself?

This wouldn't be too hard to do... and I think it's been requested in
the past at least a few times:
http://www.lucidimagination.com/search/document/7ab1d7fff1fb556e/numfound_for_facet_results

The slightly harder part is changing the response format in a backward
compatible way.

-Yonik

Reply via email to