Lucene MultiFieldQueryParser which column of the three generated the hit
Posted
by
user549432
on Stack Overflow
See other posts from Stack Overflow
or by user549432
Published on 2010-12-27T19:46:57Z
Indexed on
2010/12/27
19:54 UTC
Read the original article
Hit count: 161
I am using Lucene MultiFieldQueryParser and the implementation is as shown below
QueryParser parser = new MultiFieldQueryParser (Version.LUCENE_30,new String[] {"First Name","Middle Name","Last Name"}, standardAnalyzer); Query query = parser.parse(queryString);
and using it to find a match for the input string in my DB columns First Name, Middle Name and Last name .
I am able to get the hits with normal search and fuzzy search - The only problem I am facing is finding which column of the three generated the hit - Can you pls help me here - Thanks
© Stack Overflow or respective owner