上QQ阅读APP看书,第一时间看更新
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.