How to disable automatic creation of document types?

We need to prevent creating new types in a specific index?

Dynamic index creation can be disabled via: action.auto_create_index: false (via config/elasticsearch.yml)
Dynamic field mapping can be disable during mapping definition: "dynamic": "strict"

How can I disable this for a document-type? Is this possible at index creation time?

Did you try "index.mapper.dynamic" : "false"? According to the explanation given for Mappers this should work.

1 Like

Thanks Christoph, that works!
I thought it could only be used in the elasticsearch.yml globally. But it works also at index-creation time in the settings.