Index.mapper.dynamic doesn't work

Hi.

Automatic type creation can be disabled per-index by setting the index.mapper.dynamic setting to false in the index settings:

PUT data/_settings
{
"index.mapper.dynamic":false
}

But I found it doesn't work. My scene is:

PUT /short

PUT /short/_settings
{
"index.mapper.dynamic":false
}

PUT /short/life/124
{
"title": "My first blog entry",
"text": "Just trying this out...",
"date": "2014-01-01",
"type": "john"
}

But when I do as following:

PUT /short
{
"settings": {
"index.mapper.dynamic":false
}
}

PUT /short/life/124
{
"title": "My first blog entry",
"text": "Just trying this out...",
"date": "2014-01-01",
"type": "john"
}

Is there something wrong?

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

Issue raised: https://github.com/elastic/elasticsearch/issues/25683