Can dynamic mapping templates block a particular field from being mapped?

I have an index template set to "dynamic": "enable", which causes all fields to be added into the mapping. But what if there are fields that I explicitely do not want to be mapped?

I know that dynamic templates can change the type for fields that match a pattern. They can also turn the field into a runtime one. But can dynamic templates prevent a paritcular field from mapping at all?


When searching I found Enabled = false, still indexing everything in kibana, but unfortunately setting "enabled": "false" does not seem to prevent the field from being mapped.


This question is inspired by Documentation for dynamic template mappings? - #3 by nisow95612 and Mapping: trying to ignore 'field' but keeping 'field.raw'

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