What is Mapping
Mapping is the process of defining how a document, and the fields it contains, are stored and indexed.
Each document is a collection of fields, which each have their own data type. When mapping your data, you create a mapping definition, which contains a list of fields that are pertinent to the document. A mapping definition also includes metadata fields, like the _source field, which customize how a document’s associated metadata is handled.
Mapping contain two type:
- dynamic mapping
- explicit mapping
Dynamic Mapping
Dynamic field Mapping
The rules governing dynamic field detection.
Dynamic template
Custom rules to configure the mapping for dynamically added fields.
发表回复