lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tan Weijian <weijian....@brandtology.com>
Subject Query Hits
Date Fri, 05 Aug 2011 01:13:37 GMT
Hi ,

I am currently using lucene 2.4, is there a way to count how many words from my query hits
the post?

Lets say my query is:
APPLE OR BANANA OR ORANGE


The post is:
I have a banana, i love to eat banana and apple

This case, banana keyword is hit twice and apple is hit once, is there a way to get the count?


Thanks!

Regards
Wei Jian
---------------------------------------------------------------------
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