lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sirish Vadala <>
Subject Problem fetching number of occurrences
Date Tue, 01 Jun 2010 20:53:37 GMT

Hello All:

Can any one suggest me the best way to get the no. of occurrences of each
word per document in Lucene?

Eg: Let the indexed text be:

If you are posting a question, please try search first. Your question may
have already been answered.

Now if I search for the word 'question', then I would like to get this
document along with the number of occurrences of question in the document,
in the above case it would be 2.

Any hint would be appreciated.

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

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

View raw message