I am using the Terms query with a document lookup to load the Terms.
Is there a way to return the specific term that was found with each hit? Right now, all I get back is a list of hits, but I don't know which terms were found in which hit.
From a practical point of view, a lookup is just like a normal Terms query, so, I'm not sure, but I don't think there's a way to get that information in the response.
You'd have to do that check manually, comparing the result with your original terms list.
Using the highlight function, I can get a result back that tags the found term.... Then I just strip out the highlight tags and I am good to go.. A little hacky, but it will work for the project.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.