# Does number of fields increases if we index some fields with offsets?

**URL:** <https://discuss.elastic.co/t/does-number-of-fields-increases-if-we-index-some-fields-with-offsets/193326>\
**Category:** Elasticsearch\
**Created:** [August 1, 2019, 1:05pm UTC](https://discuss.elastic.co/t/does-number-of-fields-increases-if-we-index-some-fields-with-offsets/193326 "2019-08-01T13:05:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elk11](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@elk11](https://discuss.elastic.co/u/elk11)\
**Post date:** [August 1, 2019, 1:05pm UTC](https://discuss.elastic.co/t/does-number-of-fields-increases-if-we-index-some-fields-with-offsets/193326/1 "2019-08-01T13:05:05Z")

</div>

Hi,

To solve the issue of 'lenght of the field x exceeding the limit set for highlighting', we decided to index large fields with 'index\_options: offsets' as suggested by error message.

But post this fix we are getting error that index has exceeded the number of max fields allowed. Which seems strange because we create new index each month and today is the first day of the month.

So does indexing with offsets increase the number of fields someway? And post indexing with offsets, I'm also seeing timeout errors.

Thanks,

---

<div class="post-metadata">

**Author:** ![mayya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayya/32/83147_2.png) [@mayya](https://discuss.elastic.co/u/mayya)\
**Post date:** [August 13, 2019, 8:47pm UTC](https://discuss.elastic.co/t/does-number-of-fields-increases-if-we-index-some-fields-with-offsets/193326/2 "2019-08-13T20:47:55Z")

</div>

No, the number of fields comes from the documents you are indexing and has no relationship with some fields being indexed with offsets. You can set up mappings to have [dynamic](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html) `false` to prevent extra undefined in the mappings fields to be added.

---

<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:** [September 10, 2019, 8:48pm UTC](https://discuss.elastic.co/t/does-number-of-fields-increases-if-we-index-some-fields-with-offsets/193326/3 "2019-09-10T20:48:05Z")

</div>

Closed on September 10, 2019, 8:48pm UTC

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