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.
Thanks,
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.
Thanks,
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.
Tried some other things...
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.
Thanks!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.