# Field count limit

**URL:** <https://discuss.elastic.co/t/field-count-limit/230831>\
**Category:** Elasticsearch\
**Created:** [May 2, 2020, 9:40pm UTC](https://discuss.elastic.co/t/field-count-limit/230831 "2020-05-02T21:40:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antony\_Ukken](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/antony_ukken/32/67575_2.png) [@Antony\_Ukken](https://discuss.elastic.co/u/Antony_Ukken)\
**Post date:** [May 2, 2020, 9:40pm UTC](https://discuss.elastic.co/t/field-count-limit/230831/1 "2020-05-02T21:40:49Z")

</div>

There is limit on the number of fields that a index can have. i guess by default the limit is around 1000. In my case, the fields are generated dynamically and there could be a lot of fields actually. Is there any way that i can disable this limit?  
I use ES version 7.6.2

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [May 2, 2020, 10:36pm UTC](https://discuss.elastic.co/t/field-count-limit/230831/2 "2020-05-02T22:36:06Z")

</div>

Hello @Antony_Ukken,

The limit is by default 1000 and it can be changed using the index setting `index.mapping.total_fields.limit`.

The limit is set to protect the cluster to [field mapping explosion](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#mapping-limit-settings).

---

<div class="post-metadata">

**Author:** ![Antony\_Ukken](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/antony_ukken/32/67575_2.png) [@Antony\_Ukken](https://discuss.elastic.co/u/Antony_Ukken)\
**Post date:** [May 2, 2020, 10:49pm UTC](https://discuss.elastic.co/t/field-count-limit/230831/3 "2020-05-02T22:49:29Z")

</div>

Can I disable the limit or set it to unlimited ?

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [May 2, 2020, 10:53pm UTC](https://discuss.elastic.co/t/field-count-limit/230831/4 "2020-05-02T22:53:42Z")

</div>

It is not possible to disable it completely.

It is acceptable to set it 10000.

The motivation as detailed [here](https://github.com/elastic/elasticsearch/pull/17357)

---

<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 30, 2020, 10:53pm UTC](https://discuss.elastic.co/t/field-count-limit/230831/5 "2020-05-30T22:53:46Z")

</div>

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