lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sirish Vadala <sirishre...@gmail.com>
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.
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message