nested fields like below.
"comments" : [
{
"content" : "apple computer",
"votes_count" : 1
},
{
"content" : "apple computer is good",
"votes_count" : 2
}
]
In this case If I use es highlighter like below
"highlight": {
"type": "plain",
"fields": {
"comments.content": {
"highlight_query": {
"match": {
"comments.content": {
"query": "apple"
}
}
}
}
}
}
will be return like below
...
"highlight" : {
"comments.content" : [
"<em>apple</em> computer",
"<em>apple</em> computer is good"
]
}
But what I want is including both comments.content and comments.votes_count as a highlight result.
Is is possible in Elasticsearch?