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.
Thanks.


-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-fetching-number-of-occurrences-tp862859p862859.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to