I find es just highlight The last matched term.
For example.
{
"highlight": {
"fields": {
"field1": {
}
}
},
"size": 1,
"query": {
"bool": {
"filter": [
{
"terms": {
"field1": [
"word1",
"word2",
"word3"
]
}
}
]
}
}
}
The word1 matched some docs,but no docs match word3,the es will no highlight field in the response.
How i to see which words were matched(all matched).