Highlighting only first occurence


Elastic search is not highlighting all the occurrences. Is there any configuration to achieve this result?

Data - Road 1, Road 2, Road 3
Search by keyword: Road

Expected Result
Highlight : Road 1, Road 2, Road 3

Actual Result
Highlight: Road 1, Road 2, Road 3


Fixed it using posting highlighter
Added following line in mappings for specific field

"index_options" : "offsets"

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