Limit of total fields exceeded API Origin: Application & API OSI layer 7 · Application Last updated 2 Dec 2026

Elasticsearch: illegal_argument_exception: Limit of total fields [1000] has been exceeded

The index mapping has more than 1,000 fields.

Exact message you may see Limit of total fields [1000] has been exceededLimit of total fields exceeded
Seen on: Elasticsearch OpenSearch

Meaning

Dynamic mapping creates a field for every new JSON key. Documents with free-form keys (IDs as keys, user data) explode the mapping.

Common causes

  • Dynamic keys used as field names
  • Logging unstructured data
  • Nested objects with unbounded keys

⚡ Quick fix

  1. Restructure data into key/value arrays
  2. Set dynamic: false or strict
  3. Raise index.mapping.total_fields.limit only as a stopgap

Detailed fix by platform

Elasticsearch

  1. PUT my-index/_settings {"index.mapping.total_fields.limit": 2000}

How to diagnose

  1. Keys — Dynamic names?
  2. Mapping — Field count?
  3. Source — Which producer?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.