lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: Query Hits
Date Fri, 05 Aug 2011 09:25:00 GMT
> I am currently using lucene 2.4,

Time to upgrade?

> 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?

I don't think there is an easy way, but the highlighting stuff might
be relevant.


--
Ian.

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