| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | [[mapping-dynamic-mapping]]== Dynamic MappingDefault mappings allow to automatically apply generic mapping definitionto types that do not have mapping pre defined. This is mainly donethanks to the fact that the<<mapping-object-type,object mapping>> andnamely the <<mapping-root-object-type,rootobject mapping>> allow for schema-less dynamic addition of unmappedfields.The default mapping definition is plain mapping definition that isembedded within the distribution:[source,js]--------------------------------------------------{    "_default_" : {    }}--------------------------------------------------Pretty short, no? Basically, everything is defaulted, especially thedynamic nature of the root object mapping. The default mappingdefinition can be overridden in several manners. The simplest manner isto simply define a file called `default-mapping.json` and placed itunder the `config` directory (which can be configured to exist in adifferent location). It can also be explicitly set using the`index.mapper.default_mapping_location` setting.The dynamic creation of mappings for unmapped types can be completelydisabled by setting `index.mapper.dynamic` to `false`.As an example, here is how we can change the default<<mapping-date-format,date_formats>> used in theroot and inner object types:[source,js]--------------------------------------------------{    "_default_" : {        "date_formats" : ["yyyy-MM-dd", "dd-MM-yyyy", "date_optional_time"],    }}--------------------------------------------------
 |