How to disable automatic creation of document types?


(mos) #1

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?


(Christoph) #2

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


(mos) #3

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.


(system) #4