# Field has exceeded the allowed maximum of \[1000000\] set for the next major Elastic version

**URL:** <https://discuss.elastic.co/t/field-has-exceeded-the-allowed-maximum-of-1000000-set-for-the-next-major-elastic-version/166920>\
**Category:** Elasticsearch\
**Created:** [February 4, 2019, 8:54am UTC](https://discuss.elastic.co/t/field-has-exceeded-the-allowed-maximum-of-1000000-set-for-the-next-major-elastic-version/166920 "2019-02-04T08:54:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [February 4, 2019, 8:54am UTC](https://discuss.elastic.co/t/field-has-exceeded-the-allowed-maximum-of-1000000-set-for-the-next-major-elastic-version/166920/1 "2019-02-04T08:54:57Z")

</div>

Hello,

I use Elasticsearch and Logstash 6.5.4 for storing log data. One application also stores Requests/Responses from webservices. To store those fields I have created a custom mapping, part of it:

> ```
> {
> "mapping": {
> "doc": {
> "_source": {
> "enabled": false
> },
> "properties": {
> "REQUEST": {
> "type": "text",
> "index": false,
> "store": true
> },
> "RESPONSE": {
> "type": "text",
> "index": false,
> "store": true
> }
> }
> }
> }
> }
> 
> ```

Despite this mapping I get the following error:  
The length [1209411] of [RESPONSE] field of [yY6Vt2gBZA-Jyqcm6hu3] doc of [XXX-2019.02.04] index has exceeded the allowed maximum of [1000000] set for the next major Elastic version. 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!

I am confused by this message as I have disabled indexing for this field and it should only be stored. Can anyone explain to me why I get this error?

---

<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:** [March 4, 2019, 8:54am UTC](https://discuss.elastic.co/t/field-has-exceeded-the-allowed-maximum-of-1000000-set-for-the-next-major-elastic-version/166920/2 "2019-03-04T08:54:59Z")

</div>

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