The official definition of dynamic mapping is to detect the data types of new fields of the documents immediately during indexing, instead of first creating an index, defining the fields, and establishing its datatype mapping. Therefore, document indexing operations can be executed the fly without predefining the field mapping. Newly added fields can be picked up during indexing at any time. We'll first check with the mapping rules and then practice with a sample document to see the indexing result.
Dynamic mapping
Mapping rules
The Elasticsearch document is in JavaScript Object Notation (JSON) format. In JSON, the valid datatypes are string, number, JSON object, array, Boolean, and null. The JSON data value and the mapping...