Overriding default mapping and settings in Elasticsearch
In time-based data, we noticed that we create a new index per time frame. Assuming that the index per time frame needs custom settings other than the default ones, it's not possible to create all future indices manually. As Elasticsearch automatically creates missing indices while indexing, with default settings and mappings, we need some mechanism to override the defaults.
Elasticsearch allows us to override index settings, type settings, and even field-level settings based on patterns.