Default mappings properties when creating index


I want to create mappings settings for all types, not only for one.
So when I have following create index query:

PUT tweets
"mappings": {
"typeName": {
"_source": {
"enabled": false

So instead of setting the property of _source for the type "typeName", I want this property to be set for all types instead of defining for all separately. How can I do this?

My elasticsearch version is 6.1.2

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