ElasticSearch highlight not working as expected (after upgrade)

I have ES query,
"query" : "lib/img_folder/abc.png" for which the response is
in 1.x : lib/img_folder/abc.png
in 2.x : lib/img_folder/abc.png.

The expected output is as in 1.x. Please help figuring this out.
Thanks in advance.

The entire query for reference:

{
"query" : {
"bool" : {
"must" : {
"function_score" : {
"query" : {
"function_score" : {
"query" : {
"query_string" : {
"query" : "lib/img_folder/abc.png",
"fields" : [ "desc" ]
}
},
"functions" : [ {
"filter" : {
"query_string" : {
"query" : "lib/img_folder/abc.png",
"default_operator" : "and"
}
},
"weight" : 10.0
} ]
}
},
"functions" : [ ]
}
}
}
},
"highlight" : {
"fields" : {
"desc" : { }
}
}
}

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