Grokbase Groups Lucene dev April 2009
Have you looked at SOLR?

It pretty much has what you are looking for.

-- Joaquin
On Fri, Apr 10, 2009 at 9:39 PM, mitu2009 wrote:

Am working on a store search API using Lucene.

I need to show store search results for each City,State combination with
frequency in brackets....for example:

Los Angles,CA (450) Atlant,GA (212) Boston, MA (78) . . .

As of now, my search results return around 7000 lucene documents on an
average if the user says "Show me all the stores". In this use case, I end
up showing around 800 unique City,State records as shown above.

Am overriding HitCollector class's Collect method and retrieving vectors as
follows: var vectors = _reader.GetTermFreqVectors(doc); Then I iterate
through this collection and calculate the frequency for each unique
City,State combination.

But this is turning out to be very very slow in there any
better way of grouping search results and calculating frequency in Lucene?
Code snippet would be very helpful

Also,please suggest me if i can optimize my Lucene search code using any
other techniques/tips....

Thanks for reading!

View this message in context:
Sent from the Lucene - Java Developer mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupdev @
postedApr 11, '09 at 4:39a
activeApr 11, '09 at 6:07a

2 users in discussion

Mitu2009: 1 post J. Delgado: 1 post



site design / logo © 2018 Grokbase