# Total field limit exceed even less field than limit added in index

**URL:** <https://discuss.elastic.co/t/total-field-limit-exceed-even-less-field-than-limit-added-in-index/138549>\
**Category:** Elasticsearch\
**Created:** [July 4, 2018, 11:33am UTC](https://discuss.elastic.co/t/total-field-limit-exceed-even-less-field-than-limit-added-in-index/138549 "2018-07-04T11:33:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chelawatankit](https://avatars.discourse-cdn.com/v4/letter/c/3da27b/32.png) [@chelawatankit](https://discuss.elastic.co/u/chelawatankit)\
**Post date:** [July 4, 2018, 11:33am UTC](https://discuss.elastic.co/t/total-field-limit-exceed-even-less-field-than-limit-added-in-index/138549/1 "2018-07-04T11:33:55Z")

</div>

I have an error the the "limit of total fields [55] in index" has been exceeded. Currently in my index I have 42 fields. Now I try to add 3 more fields (all integer type) in mapping but I got total field limit exceed exception.

Expected outcome :- 3 more fields should be added in existing index.  
Actual Outcome :- Exception.

Is my understanding is correct.

I am calculating fields by fetching index setting and calculating "type" in mapping.

---

<div class="post-metadata">

**Author:** ![chelawatankit](https://avatars.discourse-cdn.com/v4/letter/c/3da27b/32.png) [@chelawatankit](https://discuss.elastic.co/u/chelawatankit)\
**Post date:** [July 4, 2018, 1:54pm UTC](https://discuss.elastic.co/t/total-field-limit-exceed-even-less-field-than-limit-added-in-index/138549/2 "2018-07-04T13:54:02Z")

</div>

Hi,

Is there any fields created by elastic by default.  
In my test case I found there are 11 fields by default.

Test case Step :-

1. Create an index with name 'test' without any mapping.
2. Change total field limit 11.
3. Try to add a field in mapping.
4. it throw exception field limit exceeded [11].
5. Change total field limit 12 now.
6. Try to add a field in mapping. This time it work.

When I saw mapping it show me only one field which I added.

Is this interpretation is correct.

---

<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:** [July 4, 2018, 2:17pm UTC](https://discuss.elastic.co/t/total-field-limit-exceed-even-less-field-than-limit-added-in-index/138549/3 "2018-07-04T14:17:07Z")

</div>

Yes. I believe the default internal fields like `_id`, `_type`, `_index`, `_source` (...) are playing a role here.

---

<div class="post-metadata">

**Author:** ![chelawatankit](https://avatars.discourse-cdn.com/v4/letter/c/3da27b/32.png) [@chelawatankit](https://discuss.elastic.co/u/chelawatankit)\
**Post date:** [July 4, 2018, 2:22pm UTC](https://discuss.elastic.co/t/total-field-limit-exceed-even-less-field-than-limit-added-in-index/138549/4 "2018-07-04T14:22:35Z")

</div>

> [@dadoonet](#):
>
> Yes. I believe the default internal fields like `_id` , `_type` , `_index` , `_source` (...) are playing a role here.

Thanks @dadoonet for response.

How many such internal fields are there?

---

<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:** [July 4, 2018, 2:44pm UTC](https://discuss.elastic.co/t/total-field-limit-exceed-even-less-field-than-limit-added-in-index/138549/5 "2018-07-04T14:44:53Z")

</div>

It's probably 9 fields. Not 100% sure though.

Source:

> <https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/indices/IndicesModule.java#L149-L167>

A part of those fields are documented here: [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-fields.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-fields.html)

---

<div class="post-metadata">

**Author:** ![chelawatankit](https://avatars.discourse-cdn.com/v4/letter/c/3da27b/32.png) [@chelawatankit](https://discuss.elastic.co/u/chelawatankit)\
**Post date:** [July 4, 2018, 3:45pm UTC](https://discuss.elastic.co/t/total-field-limit-exceed-even-less-field-than-limit-added-in-index/138549/6 "2018-07-04T15:45:20Z")

</div>

Thanks @dadoonet.

It would be really helpful for me.

---

<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:** [August 1, 2018, 3:45pm UTC](https://discuss.elastic.co/t/total-field-limit-exceed-even-less-field-than-limit-added-in-index/138549/7 "2018-08-01T15:45:24Z")

</div>

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