# Limit of total fields \[1000\] exceeded

**URL:** <https://discuss.elastic.co/t/limit-of-total-fields-1000-exceeded/254747>\
**Category:** Elasticsearch\
**Created:** [November 9, 2020, 11:53am UTC](https://discuss.elastic.co/t/limit-of-total-fields-1000-exceeded/254747 "2020-11-09T11:53:01Z")\
**Posts on this page:** 1\
**Showing post:** 17

<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:** [November 10, 2020, 4:52pm UTC](https://discuss.elastic.co/t/limit-of-total-fields-1000-exceeded/254747/17 "2020-11-10T16:52:10Z")

</div>

You can do multiple things.

One is:

```auto
DELETE test 
PUT test
{
  "mappings": {
    "properties": {
      "attributes_text": {
        "type": "nested",
        "properties": {
          "name": {
            "type": "keyword"
          },
          "value": {
            "type": "text"
          }
        }
      },
      "attributes_int": {
        "type": "nested",
        "properties": {
          "name": {
            "type": "keyword"
          },
          "value": {
            "type": "integer"
          }
        }
      }
    }
  }
}

```

Another idea which will require less fields:

```auto
DELETE test 
PUT test
{
  "mappings": {
    "properties": {
      "attributes": {
        "type": "nested",
        "properties": {
          "name": {
            "type": "keyword"
          },
          "value_text": {
            "type": "text"
          },
          "value_int": {
            "type": "integer"
          }
        }
      }
    }
  }
}

```

---

_[View the full topic](https://discuss.elastic.co/t/limit-of-total-fields-1000-exceeded/254747)._
