Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OS Serverless Stack Management: 2.0.2
Describe the issue:
Updating the dynamic mapping for an existing index. I m trying to disable the dynamic mapping for an index using:
PUT /X-index/_settings
{
“index.mapper.dynamic”: false
}
But i m getting this error:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "X-index Update to setting [index.mapper.dynamic] is not supported"
}
],
"type": "illegal_argument_exception",
"reason": "X-index Update to setting [index.mapper.dynamic] is not supported"
},
"status": 400
}
Is the update to an existing index supported? I understood it is supported and will only apply to future datasets but doesnt seem so.
Set your index mapping to disable dynamic fields, ensuring only predefined fields are allowed. This prevents Elasticsearch from automatically adding new fields and keeps your index structure consistent and controlled.