Partial word highlighting doesn't work properly

I am using highlighting(fvh) in the elasticsearch to highlight the keyword.
When I do a search with keyword 5-2011, it produces the result with the keyword 005-2011 but it doesn't highlight the keyword.
My query to highlight is

 {
                             "type": "fvh",
                             "pre_tags": ["<em>"],
                             "post_tags": ["</em>"],
                             "number_of_fragments": 100,
                             "fragment_size": 50,
                            "fields": { "*": {} }
}

Elasticsearch version: 7.4.0
Actual behavior:
it doesn't return highlight for the keyword(5-2011)

expected behavior:

00"< em >5-2011</ em >

Settings for my index: https://pastebin.com/nxAbReBT

Mappings: https://pastebin.com/cYTDnkrq

sample document: https://pastebin.com/NGa6PHTh

search query: https://pastebin.com/gBp5wfE4

expected result: https://pastebin.com/4hBBhgN4

Github issue reference: https://github.com/elastic/elasticsearch/issues/48054

@jimczi , any thoughts?

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