Elasticsearch - Highlight fragments containing unique search terms

Hi,

I am looking for a Elasticsearch Highlight feature where each highlight term is unique. One of my fields contains over 3000 words. When I search over this field using multiple words in a single search query,
it highlights texts either based on its occurrence in field or by score. Is it possible to highlight all the unique terms first?
Ex. if my field contains "sachin" many number of times(can be present plural number of times within a single sentence) and "tendulkar" is present only once,
When is search using "sachin tendulkar"
The word "tendulkar" will not be highlighted when I order the highlight by its score or may not be highlighted by default as it can be present after first five occurrences of word "sachin". Is it possible to fetch all the unique terms in my highlight?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.