- Elasticsearch 7.0 Cookbook(Fourth Edition)
- Alberto Paro
- 71字
- 2021-06-24 14:52:04
There's more...
The dynamic template is very handy when you need to set a mapping configuration to all the fields. This action can be done by adding a dynamic template, similar to this one:
"dynamic_templates" : [
{
"store_generic" : {
"match" : "*",
"mapping" : {
"store" : "true"
}
}
}
]
In this example, all the new fields, which will be added with explicit mapping, will be stored.