# Setting index.mapper.dynamic was removed after version 6.0.0

**URL:** <https://discuss.elastic.co/t/setting-index-mapper-dynamic-was-removed-after-version-6-0-0/265356>\
**Category:** Elasticsearch\
**Created:** [February 24, 2021, 2:15pm UTC](https://discuss.elastic.co/t/setting-index-mapper-dynamic-was-removed-after-version-6-0-0/265356 "2021-02-24T14:15:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmaitrehenry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jmaitrehenry/32/84479_2.png) [@jmaitrehenry](https://discuss.elastic.co/u/jmaitrehenry)\
**Post date:** [February 24, 2021, 2:15pm UTC](https://discuss.elastic.co/t/setting-index-mapper-dynamic-was-removed-after-version-6-0-0/265356/1 "2021-02-24T14:15:57Z")

</div>

Hi, I have a trouble after trying to update an index mapping with ES 7.4 and 7.9:

```auto
PUT /myindex/_mapping
{
  "properties": {
    "doc": {
      "properties": {
        "transaction": {
          "properties": {
            "phoneNumber": {
              "type": "keyword",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 32
                }
              }
            }
          }
        }
      }
    }
  }
}

```

return this error:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
  },
  "status" : 400
}

```

If I check the index settings, I see it:

```auto
GET /myindex/_settings
{
  "myindex" : {
    "settings" : {
      "index" : {
        [...]
        "mapper" : {
          "dynamic" : "false"
        },
        "creation_date" : "1612899276385",
        "version" : {
          "created" : "7090199"
        }
      }
    }
  }
}

```

I try to remove it with the same error:

```auto
PUT /myindex/_settings
{"index.mapper.dynamic": null}

```

I checked if a template exist with this value without success:

```auto
curl "https://xxxx/_template?pretty&flat_settings" | grep mapper
nothing

```

Any ideas?

---

<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:** [March 24, 2021, 2:16pm UTC](https://discuss.elastic.co/t/setting-index-mapper-dynamic-was-removed-after-version-6-0-0/265356/2 "2021-03-24T14:16:34Z")

</div>

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