# Are there special considerations for indexing extremely long Strings

**URL:** <https://discuss.elastic.co/t/are-there-special-considerations-for-indexing-extremely-long-strings/63753>\
**Category:** Elasticsearch\
**Created:** [October 24, 2016, 1:30pm UTC](https://discuss.elastic.co/t/are-there-special-considerations-for-indexing-extremely-long-strings/63753 "2016-10-24T13:30:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevenmwall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevenmwall/32/12199_2.png) [@stevenmwall](https://discuss.elastic.co/u/stevenmwall)\
**Post date:** [October 24, 2016, 1:30pm UTC](https://discuss.elastic.co/t/are-there-special-considerations-for-indexing-extremely-long-strings/63753/1 "2016-10-24T13:30:35Z")

</div>

I have a text field that I need to store in Elastic where it will contain some extremely long values. The values are the contents of Word documents that could be dozens of pages long.

I was not intending to use the mapper attachment plug-in as our application already have the contents of those documents extracted (we have an existing OCR process), so I don't want to encode them again just to have the mapper-attachment plug-in do it's own OCR with Apache Tikka.

Since the contents of this field are going to very some very long strings, are there any special properties I need to set on my mapping or is just declaring the type String enough?

(Currently on ES 2.1. Moving to ES late this year or early next year. I would be interested in the answer to both 2.1 and 5.)

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [October 25, 2016, 12:13pm UTC](https://discuss.elastic.co/t/are-there-special-considerations-for-indexing-extremely-long-strings/63753/2 "2016-10-25T12:13:14Z")

</div>

The only limit I could think of would be the one mentioned here:

> <https://stackoverflow.com/questions/28841221/what-is-the-maximum-elasticsearch-document-size>

Others may have more precise answers for you.

---

<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 5, 2017, 10:10pm UTC](https://discuss.elastic.co/t/are-there-special-considerations-for-indexing-extremely-long-strings/63753/3 "2017-07-05T22:10:00Z")

</div>


