Highlighting a script search

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.