How to "ignore" dynamic fields not matching any "dynamic_templates"?

Hey Guys,

In my mapping, I set 'dynamic' to 'true' and I have a few 'dynamic_templates' that based on the name of the fields map them to different types. How can I ignore and not index fields that don't match any of the templates? I tried adding an "ignoredFields" dynamic template like below to ignore the fields but it doesn't seem to be working and all undefined fields still get mapped.

"ignored": {
"match": "*",
"mapping": {
"enabled": false



You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit