WARNING: Version 2.1 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
You can override the default mappings for all indices and all types
by specifying a
_default_ type mapping in an index template
which matches all indices.
For example, to disable the
_all field by default for all types in all
new indices, you could create the following index template: