# How to update dynamic mapping on existing index

**URL:** <https://discuss.elastic.co/t/how-to-update-dynamic-mapping-on-existing-index/241327>\
**Category:** Elasticsearch\
**Created:** [July 15, 2020, 3:42pm UTC](https://discuss.elastic.co/t/how-to-update-dynamic-mapping-on-existing-index/241327 "2020-07-15T15:42:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilang](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@ilang](https://discuss.elastic.co/u/ilang)\
**Post date:** [July 15, 2020, 3:42pm UTC](https://discuss.elastic.co/t/how-to-update-dynamic-mapping-on-existing-index/241327/1 "2020-07-15T15:42:34Z")

</div>

Hi guys,

I am trying to update the dynamic mapping to "strict" on an existing index.

To do so I tried to run the following query:

PUT /dev-jira-fetcher/\_mappings  
{  
"dynamic": "strict"  
}

I also tried this one:

PUT /dev-jira-fetcher/\_mappings  
{  
"index": {  
"mapper": {  
"dynamic": "false"  
}  
}  
}

However ES is throwing the following error:

{  
"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  
}

I followed this manual:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html)

Thanks for your help!

---

<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:** [July 29, 2020, 3:42pm UTC](https://discuss.elastic.co/t/how-to-update-dynamic-mapping-on-existing-index/241327/2 "2020-07-29T15:42:38Z")

</div>

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