We've written a custom search script which finds documents in which both terms occur within the same sentence.
We also need to get highlighting working on for the hits found by the script.
Is this possible to do?
We've written a custom search script which finds documents in which both terms occur within the same sentence.
We also need to get highlighting working on for the hits found by the script.
Is this possible to do?
I don't believe so. You can highlight the terms by adding a match
query with the terms either to your query or to highlight_query
, but there isn't a way for the script to communicate with the highlighter.
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.