Bug when updating dynamic templates

In elastic 5.1 when updating dynamic templates via PUT api all previous templates are missed:
for example I have such templates: tempate_1, template_2
when I do
curl -XPUT http://localhost:9200/jiji-adverts/ad/mapping -d '
{
"ad" : {
"dynamic_templates": [
{
"geo_attribute_template": {
"path_match": "attrs.geo_attr
*",
"mapping": {
"type": "geo_point"
}
}
}
]
}
}'
then I get only one template (geo_attribute_template) all others are missed

But in docs said that templates should be appended to the end:
https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-templates.html#CO234-3

This api works well in elastic 2.4, but work weird in elastic 5.1

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.