At first, Elasticsearch may appear to be schemaless since you can add new fields any time you want, but every field in a document must match the mapping.
Dynamic Templates reduce boilerplate
How many times have you opened up a mapping file to something like this where the same type definition is repeated over and over again?
|
|
It’s super easy to refactor this into an alternative where by default all string values are mapped as keyword, except for the specific field listed as “text”.