# Where do integer document IDs in highlighting error messages come from?

**URL:** <https://discuss.elastic.co/t/where-do-integer-document-ids-in-highlighting-error-messages-come-from/336602>\
**Category:** Elasticsearch\
**Created:** [June 21, 2023, 3:47pm UTC](https://discuss.elastic.co/t/where-do-integer-document-ids-in-highlighting-error-messages-come-from/336602 "2023-06-21T15:47:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkleinbaer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkleinbaer/32/120051_2.png) [@nkleinbaer](https://discuss.elastic.co/u/nkleinbaer)\
**Post date:** [June 21, 2023, 3:47pm UTC](https://discuss.elastic.co/t/where-do-integer-document-ids-in-highlighting-error-messages-come-from/336602/1 "2023-06-21T15:47:39Z")

</div>

Sometimes when searching in Kibana I will get a pop up about failed shards. Inspecting the response shows errors like this one:  
`The length of [message] field of [32] doc of [my-index] index has exceeded [1000000] - maximum allowed to be analyzed for highlighting. This maximum can be set by changing the [index.highlight.max_analyzed_offset] index level setting. For large texts, indexing with offsets or term vectors is recommended`  
The error is clear about what the problem is and how to fix it. But what is not clear to me is how to identify the offending document. I initially assumed that `32` was the documents `_id`, but no such document exists in the index in question. Generally, all documents in my index have alphanumeric hashes as their `_id`, but the error message always shows an integer. Is there any way I can use the integer from the error message to identify the document?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 26, 2023, 5:58am UTC](https://discuss.elastic.co/t/where-do-integer-document-ids-in-highlighting-error-messages-come-from/336602/2 "2023-06-26T05:58:14Z")

</div>

Welcome to our community! 😃

Is there anything in the Elasticsearch logs at this time that might help?

---

<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:** [July 24, 2023, 5:59am UTC](https://discuss.elastic.co/t/where-do-integer-document-ids-in-highlighting-error-messages-come-from/336602/3 "2023-07-24T05:59:07Z")

</div>

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