# Highlight all words which matched in a fuzzy search?

**URL:** <https://discuss.elastic.co/t/highlight-all-words-which-matched-in-a-fuzzy-search/82667>\
**Category:** Elasticsearch\
**Created:** [April 18, 2017, 8:10am UTC](https://discuss.elastic.co/t/highlight-all-words-which-matched-in-a-fuzzy-search/82667 "2017-04-18T08:10:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![famoss](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@famoss](https://discuss.elastic.co/u/famoss)\
**Post date:** [April 18, 2017, 8:10am UTC](https://discuss.elastic.co/t/highlight-all-words-which-matched-in-a-fuzzy-search/82667/1 "2017-04-18T08:10:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 16, 2017, 8:15am UTC](https://discuss.elastic.co/t/highlight-all-words-which-matched-in-a-fuzzy-search/82667/2 "2017-05-16T08:15:15Z")

</div>

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