# Maximum length for highlighting exceeded - What can I do?

**URL:** <https://discuss.elastic.co/t/maximum-length-for-highlighting-exceeded-what-can-i-do/121678>\
**Category:** Elasticsearch\
**Created:** [February 27, 2018, 2:36pm UTC](https://discuss.elastic.co/t/maximum-length-for-highlighting-exceeded-what-can-i-do/121678 "2018-02-27T14:36:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![T3rm11](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@T3rm11](https://discuss.elastic.co/u/T3rm11)\
**Post date:** [February 27, 2018, 2:36pm UTC](https://discuss.elastic.co/t/maximum-length-for-highlighting-exceeded-what-can-i-do/121678/1 "2018-02-27T14:36:17Z")

</div>

Logstash sends exception with stacktraces to Elasticsearch and this results sometimes to this warning:

> The length of text to be analyzed for highlighting [20567] exceeded the allowed maximum of [10000] set for the next major Elastic version. For large texts, indexing with offsets or term vectors is recommended!

I would like to know what I can do about this. I took at look at index\_options and adjusted the logstash template so that the message field has index\_options set to docs. Does this make sense? It did not help. The warning is still there.

Also, how can I find out what data it refers to. I have several clients and it could be anyone. Is there a way to find out without checking every clients Logstash log?

---

<div class="post-metadata">

**Author:** ![deepaks](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@deepaks](https://discuss.elastic.co/u/deepaks)\
**Post date:** [March 7, 2018, 2:48pm UTC](https://discuss.elastic.co/t/maximum-length-for-highlighting-exceeded-what-can-i-do/121678/2 "2018-03-07T14:48:46Z")

</div>

I dont see any replies but @T3rm11 did you get anywhere with this issue ?

---

<div class="post-metadata">

**Author:** ![T3rm11](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@T3rm11](https://discuss.elastic.co/u/T3rm11)\
**Post date:** [March 7, 2018, 3:17pm UTC](https://discuss.elastic.co/t/maximum-length-for-highlighting-exceeded-what-can-i-do/121678/3 "2018-03-07T15:17:11Z")

</div>

No, it's still a problem.

---

<div class="post-metadata">

**Author:** ![T3rm11](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@T3rm11](https://discuss.elastic.co/u/T3rm11)\
**Post date:** [April 3, 2018, 2:32pm UTC](https://discuss.elastic.co/t/maximum-length-for-highlighting-exceeded-what-can-i-do/121678/4 "2018-04-03T14:32:08Z")

</div>

How can I get help for this? I can't be the only person that has a field with data that is longer than 10k chars.

---

<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 1, 2018, 2:32pm UTC](https://discuss.elastic.co/t/maximum-length-for-highlighting-exceeded-what-can-i-do/121678/5 "2018-05-01T14:32:13Z")

</div>

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