Highlight all words which matched in a fuzzy search?

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).

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