How to update dynamic mapping on existing index

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

Thanks for your help!

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