There was a similar question recently on java-user (I haven't tried to find it).

I think to do this efficiently it'd be best to make your own Query impl that tracks this information as its scoring.

Mike

john smith wrote:

Hi

Each document found in a Lucene index contains scoring information however it doesn't provide (in the same easy way as scoring) an information about a
number of occurrences of searched terms in its contents.
Using Lucene API I can check each searched term against its frequecies in each found document but I want to be sure that there is no better way to get information about frequences of searched terms in (each) found document.

Regards
John S.


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