You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Shayak Sen <sh...@gmail.com> on 2009/06/09 10:00:01 UTC

Lucene Query Field Info

I construct a boolean query to search a term in each of the field of
the index. Once I retrieve the hits, is it possible to retrieve which
field matched to the particular term.
For example:
I have fields A B C with data a b c.
A B C
a  b a

Then I search for A:a B:a C:a and get a hit.
Can I tell which field(s) the hit occured in?
I could do separate searches as per the field but that would take more
time and also upset my ranking.

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