I'm using MultiFieldQueryParser to search over different fields of documents
in the
index. Whenever I get a hit for a query, is it possible to know in which
field the query
match occurred? And is it possible to retrieve the field(s) for each hit?

To make things clearer, suppose I have four fields for each document (say,
"0", "1",
"2", and "3"), and for a hit let the query only occur in field "1" of that
document hit.
is it possible to retrieve this information that for that hit query term
occurred in field

I have tried using Explanation for each document, but found it very slow. I
believe there
got to be another fast alternative to achieve the same.

Thanks and Regards,
Prashant Ullegaddi,
Search and Information Extraction Lab,
IIIT-Hyderabad, INDIA.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupjava-user @
postedFeb 4, '10 at 6:15a
activeFeb 4, '10 at 6:15a

1 user in discussion

Prashant ullegaddi: 1 post



site design / logo © 2022 Grokbase