# How to highlight partial word when using edge\_ngram filter

**URL:** <https://discuss.elastic.co/t/how-to-highlight-partial-word-when-using-edge-ngram-filter/261742>\
**Category:** Elasticsearch\
**Created:** [January 21, 2021, 8:16am UTC](https://discuss.elastic.co/t/how-to-highlight-partial-word-when-using-edge-ngram-filter/261742 "2021-01-21T08:16:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralgo](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@ralgo](https://discuss.elastic.co/u/ralgo)\
**Post date:** [January 21, 2021, 8:16am UTC](https://discuss.elastic.co/t/how-to-highlight-partial-word-when-using-edge-ngram-filter/261742/1 "2021-01-21T08:16:37Z")

</div>

I am using the edge\_ngram filter in my analyzer, e.g. I index a word "EVA京", it will be mapped to an array [E, EV, EVA, 京]. And then I search "EV", of cause "EVA京" can be recalled. But the highlight works wrong! The result of highlight is "\<em\>EVA\</em\>京", but not "\<em\>EV\</em\>A京".

Can someone give me a hint how to correct the highlight result?

---

<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:** [February 18, 2021, 8:16am UTC](https://discuss.elastic.co/t/how-to-highlight-partial-word-when-using-edge-ngram-filter/261742/2 "2021-02-18T08:16:59Z")

</div>

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