# Discover fails with "content length bigger than max allowed string" on index with large text field

**URL:** <https://discuss.elastic.co/t/discover-fails-with-content-length-bigger-than-max-allowed-string-on-index-with-large-text-field/388911>\
**Category:** Elasticsearch\
**Created:** [July 30, 2026, 4:28pm UTC](https://discuss.elastic.co/t/discover-fails-with-content-length-bigger-than-max-allowed-string-on-index-with-large-text-field/388911 "2026-07-30T16:28:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [July 30, 2026, 5:23pm UTC](https://discuss.elastic.co/t/discover-fails-with-content-length-bigger-than-max-allowed-string-on-index-with-large-text-field/388911/2 "2026-07-30T17:23:27Z")

</div>

welcome to the forum @Mouly_Infy

This has been asked directly or indirectly a couplee of times, e.g. [here](https://discuss.elastic.co/t/context-length-is-bigger-than-maximum-allowed-string/356985)

See this [github](https://github.com/elastic/kibana/issues/173346) thread too for some ideas.

You need be careful here too as other clients (not just Kibana/Discover) can hit issues with large HTTP payloads. I dont know your use case and what you are specifically trying to do, but it's unlikely there is much value in "seeing" a 23 MB document within Kibana.

---

_[View the full topic](https://discuss.elastic.co/t/discover-fails-with-content-length-bigger-than-max-allowed-string-on-index-with-large-text-field/388911)._
