lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Total count of facets
Date Wed, 04 Feb 2009 20:47:05 GMT
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 <brunoaranda@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


Mime
View raw message