Elasticsearch dynamic mapping
Elasticsearch dynamic mapping，文字内容来自 B 站中华石杉 Elasticsearch 高手进阶课程，英文内容来自官方文档。
The automatic detection and addition of new fields is called dynamic mapping.
Explicit mapping allows you to precisely choose how to define the mapping definition, such as ：
which string fields should be treated as full text fields
which fields contain numbers, dates, or geolocations
The format of date values
Custom rules to control the mapping for dynamically added fields.
Defining too many fields in an index can lead to a mapping explosion, which can cause out of memory errors and difficult situations to recover from.
Use the mapping limit settings to limit the number of field mappings (created manually or dynamically) and prevent documents from causing a mapping explosion.
版权声明: 本文为 InfoQ 作者【escray】的原创文章。