# Issue with highlighting a sentence in ElasticSearch cut off

**URL:** <https://discuss.elastic.co/t/issue-with-highlighting-a-sentence-in-elasticsearch-cut-off/253099>\
**Category:** Elasticsearch\
**Created:** [October 23, 2020, 8:31am UTC](https://discuss.elastic.co/t/issue-with-highlighting-a-sentence-in-elasticsearch-cut-off/253099 "2020-10-23T08:31:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepukeloth](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@Deepukeloth](https://discuss.elastic.co/u/Deepukeloth)\
**Post date:** [October 23, 2020, 8:31am UTC](https://discuss.elastic.co/t/issue-with-highlighting-a-sentence-in-elasticsearch-cut-off/253099/1 "2020-10-23T08:31:56Z")

</div>

Hi,

I am facing an issue with highlighting of multi-synonym word in search response. Our ES version is 5.x .The issue is that if a synonym word is present at the **beginning** or at the **end** of the sentence, then part of the synonym word is cut-off.  
**For example** , if the synonym for "Asthma" is " Severe Asthma" then if " Severe Asthma" is present at the beginning or at the end of the sentence then it becomes ' **Severe**' and the remaining sentence(Asthma) is cut-off at the end.  
Also if " Severe Asthma" is at the beginning of sentence, then the highlight appear as ' **Asthma**' with "Severe" missing or cut-off.

Can anyone suggest any solution here please.

---

<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:** [November 20, 2020, 8:32am UTC](https://discuss.elastic.co/t/issue-with-highlighting-a-sentence-in-elasticsearch-cut-off/253099/2 "2020-11-20T08:32:04Z")

</div>

Closed on November 20, 2020, 8:32am UTC

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