[FEATURE] Allow dynamic_templates
but disallow other dynamic mappings
#11276
Labels
enhancement
Enhancement or improvement to existing feature or request
Indexing
Indexing, Bulk Indexing and anything related to indexing
v2.16.0
Issues and PRs related to version 2.16.0
v3.0.0
Issues and PRs related to version 3.0.0
Is your feature request related to a problem? Please describe.
Currently it is possible to set
dynamic: "strict"
which prevents adding fields that do not have a static mapping in the "properties" but it also disables usage ofdynamic_templates
.For example
This will disallow documents like
while allowing
but it does not allow
which is unfortunate 😞
Describe the solution you'd like
Option like
"dynamic": "templates"
which allows thedate__created
andurl
but disallows thebad
field would be really useful to avoid accidental data in the index.Describe alternatives you've considered
There's a hacky workaround. One can map any remaining fields to a "broken mapping"
And this works like described but emits bit weird error messages.
The text was updated successfully, but these errors were encountered: