Elasticsearch dynamic mapping
Elasticsearch dynamic mapping,文字内容来自 B 站中华石杉 Elasticsearch 高手进阶课程,英文内容来自官方文档。
核心的数据类型
string
byte,short,integer,long
float,double
boolean
date
Dynamic mapping
The automatic detection and addition of new fields is called dynamic mapping.
Date detection
Numeric detection
Explicit 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.
Mapping explosion
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.
查看 mapping
版权声明: 本文为 InfoQ 作者【escray】的原创文章。
原文链接:【http://xie.infoq.cn/article/01787b5e12186d310a543a4d0】。
本文遵守【CC-BY 4.0】协议,转载请保留原文出处及本版权声明。
评论