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: "_index" : "c1s_14_oct_2019", "_type" : "_doc", "_id" - Pastebin.com

search query: {'size': 10, 'query': {'bool': {'must': [{'bool': {'should': [{'bool': {'should' - Pastebin.com

expected result: "_index" : "c1s_14_oct_2019", "_type" : "_doc", "_id" : "vz - Pastebin.com

Github issue reference: [7.4.0, BUG] Highlighting(fvh) - Elastic Search · Issue #48054 · elastic/elasticsearch · GitHub

@jimczi , any thoughts?

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