Hi there,

    Here is what I want to do: I have some documents that contain two
fields, say "title" and "body", and they are both NOT stored. And now I
want the user to be able to search inside both "title" and "body" with some
keyword, say "lucene", using MultiTermQuery (I don't want to use two
separate queries because I might have a lot more fields that also need to
be searched). The problem is when the search is done, I want to know not
only which documents was hit, but also which field of each document was
hit. For example, some document has "lucene" in title but not in body, and
I need to know this when the search is done. And since the search is
possible without field be stored, so this kind of information must be
inside the index, but I cannot find any way to retrieve it. Maybe I miss
something here? Or could somebody please explain to me why is this not
possible? It seems like a very natural feature that we should have.

-- 
Ke Wu,
Best Regards

Reply via email to