When putting new dynamic templates, all existing templates are overwritten. #30274
Labels
>bug
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
v6.4.0
v7.0.0-beta1
Elasticsearch version (
bin/elasticsearch --version
): 6.2.3Description of the problem including expected versus actual behavior:
Putting new mappings for
dynamic_template
overwrites all existing templates, even templates that the put mappings request does not mention. This behavior conflicts with what's described in the dynamic templates documentation:If we're happy with the behavior described in the documentation, we should update the mapping merge logic to obey those semantics.
Steps to reproduce:
Please see the following gist: https://gist.github.com/jtibshirani/52d913410957b502d6037f02d1f1340a
The text was updated successfully, but these errors were encountered: