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

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.

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.

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?

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

Source:

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

Thanks @dadoonet.

It would be really helpful for me.

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