Highlight object type field while searching for a word match

HI All,

I am trying to highlight the object type field, normal fields highlight is working where as for object field, highlights is returning empty array.
Can anyone please help?
Doc structure is as below.
"document": {
"shareClasses": [
{
"szdf": "XXX",
"sdf": "XXX",
"documents": [
{
"sdf": null,
"fileName": "XX",
"documentType": [
"XX"
],
...
}
],
"zxc": "T",
"zxc": "zxc"
}
],
"documents": [
{
"sdc": null,
"sd": "sd.pdf",
"sd": [
"sdf reports"
],
...
}
],
"sdf": "csdf",
"sdf": "vdfvfd",
"dfv": "sdf",
"dfssdf": "dfdsfds"
}

I have built a mustache template and provided the highlights section.
"highlight": {
"fields": {
"documents.documentType": {
"matched_fields": ["documents.documentType.autocomplete"],
"type" : "plain"
}
}
}

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