How can I turn off dynamic mapping for an existing mapping? Is it possible
to do it on the fly, or I need to do it when I create the mapping?
Here's a set of commands I tried to test this:
It looks like setting the dynamic setting to "strict" after the mapping
creation does not work, and new documents added with fields not specified
in the original mapping will change the mapping definition.
The dynamic property can't be modified on an existing mapping. If
the dynamic property is specified on the top level then the only
option I see now is to create a new mapping. You can specify dynamic
also on any object type inside your mapping. If that is the case then
you can add a new field of type object with a different dynamic
setting. In any case you still need to update your documents.
It looks like setting the dynamic setting to "strict" after the mapping
creation does not work, and new documents added with fields not specified in
the original mapping will change the mapping definition.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.