Mailing List Archive

lucene question( summary of values by field )
Hi !

I make a search and get the hits. this hits have lucene records say r1,
.... rn. eache record has
the fields f1 , f2 ... fn .

I need to get a sumary of field values ( like those ebay , and shopping.com
do )

for example :
values for field f1 -> A :50 records
B :60 records
Others : 30 records
(asuming the search produced 140 lucene documents. )

I really would apreciate if anybody knows how can I program that
functionallity. I did it using a 'for' loop trough all the records , but
it gets very slow when the amount of records is so large.

Thank in advance for your ideas.










--
View this message in context: http://www.nabble.com/lucene-question%28-summary-of-values-by-field-%29-tf4470515.html#a12746668
Sent from the Lucene - General mailing list archive at Nabble.com.
Re: lucene question( summary of values by field ) [ In reply to ]
For counts per facet you probably need to use Solr Faceted Browsing

- http://wiki.apache.org/solr/SolrFacetingOverview

or DB-Lucene integration

- https://issues.apache.org/jira/browse/LUCENE-724

J.D.

2007/9/17, ingeniebrio <jmpa1999@yahoo.com.mx>:
>
>
> Hi !
>
> I make a search and get the hits. this hits have lucene records
> say r1,
> .... rn. eache record has
> the fields f1 , f2 ... fn .
>
> I need to get a sumary of field values ( like those ebay , and
> shopping.com
> do )
>
> for example :
> values for field f1 -> A :50 records
> B :60 records
> Others : 30 records
> (asuming the search produced 140 lucene documents. )
>
> I really would apreciate if anybody knows how can I program that
> functionallity. I did it using a 'for' loop trough all the records , but
> it gets very slow when the amount of records is so large.
>
> Thank in advance for your ideas.
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/lucene-question%28-summary-of-values-by-field-%29-tf4470515.html#a12746668
> Sent from the Lucene - General mailing list archive at Nabble.com.
>
>