Highlighting only first occurence

(Manvir Basra) #1


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


(Manvir Basra) #2

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

"index_options" : "offsets"

(system) #3

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