lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prashant ullegaddi <prashullega...@gmail.com>
Subject Retrieving field information for each hit when using "MultiFieldQueryParser"
Date Thu, 04 Feb 2010 06:14:28 GMT
Hi,

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

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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message