# Exception while storing data more than 32K

**URL:** <https://discuss.elastic.co/t/exception-while-storing-data-more-than-32k/116444>\
**Category:** Elasticsearch\
**Created:** [January 22, 2018, 8:48am UTC](https://discuss.elastic.co/t/exception-while-storing-data-more-than-32k/116444 "2018-01-22T08:48:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanish\_Bansal](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Hanish\_Bansal](https://discuss.elastic.co/u/Hanish_Bansal)\
**Post date:** [January 22, 2018, 8:48am UTC](https://discuss.elastic.co/t/exception-while-storing-data-more-than-32k/116444/1 "2018-01-22T08:48:56Z")

</div>

Hi All,

We are getting exception while storing data more than 32K in an index field. We just need to store the data without any indexing.

Elasticsearch version: 6.0.0  
Field Data Type: "type": "keyword" and "index": false

```
[2018-01-21T19:51:07,956][DEBUG][o.e.a.b.TransportShardBulkAction] [fwall_feeds_data][4] failed to execute bulk item (update) BulkShardRequest [[fwall_feeds_data][4]] containing [5] requests
java.lang.IllegalArgumentException: DocValuesField "nlp_data" is too large, must be <= 32766

```

Please suggest how can we resolve this issue.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 22, 2018, 9:02am UTC](https://discuss.elastic.co/t/exception-while-storing-data-more-than-32k/116444/2 "2018-01-22T09:02:53Z")

</div>

If you don't need to index the data, then use a type `text` and set `index: false`:

[https://www.elastic.co/guide/en/elasticsearch/reference/6.1/mapping-index.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/mapping-index.html)

---

<div class="post-metadata">

**Author:** ![Hanish\_Bansal](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Hanish\_Bansal](https://discuss.elastic.co/u/Hanish_Bansal)\
**Post date:** [January 22, 2018, 9:28am UTC](https://discuss.elastic.co/t/exception-while-storing-data-more-than-32k/116444/3 "2018-01-22T09:28:26Z")

</div>

Thanks @dadoonet for quick response .

Is there any size limit on text type also?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 22, 2018, 9:41am UTC](https://discuss.elastic.co/t/exception-while-storing-data-more-than-32k/116444/4 "2018-01-22T09:41:50Z")

</div>

Yes but much much higher. Can't recall from the top of my my head but it's much much more.

---

<div class="post-metadata">

**Author:** ![Hanish\_Bansal](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Hanish\_Bansal](https://discuss.elastic.co/u/Hanish_Bansal)\
**Post date:** [January 22, 2018, 9:47am UTC](https://discuss.elastic.co/t/exception-while-storing-data-more-than-32k/116444/5 "2018-01-22T09:47:04Z")

</div>

Thanks @dadoonet.

---

<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:** [February 19, 2018, 9:47am UTC](https://discuss.elastic.co/t/exception-while-storing-data-more-than-32k/116444/6 "2018-02-19T09:47:22Z")

</div>

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