# How to increase max length of a document to be indexed from default 2kb to higher value?

**URL:** <https://discuss.elastic.co/t/how-to-increase-max-length-of-a-document-to-be-indexed-from-default-2kb-to-higher-value/127657>\
**Category:** Elasticsearch\
**Created:** [April 11, 2018, 2:39pm UTC](https://discuss.elastic.co/t/how-to-increase-max-length-of-a-document-to-be-indexed-from-default-2kb-to-higher-value/127657 "2018-04-11T14:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Datla](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Rohit\_Datla](https://discuss.elastic.co/u/Rohit_Datla)\
**Post date:** [April 11, 2018, 2:39pm UTC](https://discuss.elastic.co/t/how-to-increase-max-length-of-a-document-to-be-indexed-from-default-2kb-to-higher-value/127657/1 "2018-04-11T14:39:55Z")

</div>

I am using elastic search through python. When I try to index a document of size 120kb, i get an error in python as (image attached)

 ![es](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c11d80b1c433e0d1eb6f109d557f876dd46fe384.PNG)

when I look at Elastic search 6.2.3 logs(image attached), i see that max length is at 2kb but my document size is 120kb. So I would like to know how I can increase value of max lenth, to index successfully or if there is anything else going wrong.

![es1](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e8468fe1434b4c118f4a88859de226e9361b149c.PNG)

Thanks in advance!!

---

<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 9, 2018, 2:39pm UTC](https://discuss.elastic.co/t/how-to-increase-max-length-of-a-document-to-be-indexed-from-default-2kb-to-higher-value/127657/2 "2018-05-09T14:39:58Z")

</div>

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