Limit in elasticsearch

I get the below error while trying to create an index. What could be be problem?

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Limit of total fields [1000] in index [test] has been exceeded"}],"type":"illegal_argument_exception","reason":"Limit of total fields [1000] in index [est] has been exceeded"},"status":400}

Elasticsearch limits the number of fields per index to 1000 by default.

This limit can be raised, but you should check why your data model needs a very large number of fields.

I have added that , but still getting the same error. I need all fields. Is there a way i can adjust it?

"index.mapping.total_fields.limit": 20000,

Add

"index.mapping.total_fields.limit": 100000000,

(not sure it works though)

Or better, follow what @Magnus_Kessler said:

check why your data model needs a very large number of fields.

Seriously. Could you explain what you are doing?

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