Mapping 索引映射
核心数据类型
字符串类型: string text and keyword
数字类型: Numeric long, integer, short, byte, double, float, half_float, scaled_float
日期类型: Date date
纳秒日期类型:Date nanoseconds date_nanos
布尔类型: Boolean boolean
二进制类型: Binary binary
范围类型: Range integer_range, float_range, long_range, double_range, date_range
复杂数据类型
对象类型: Object 单个JSON对象的对象
嵌套类型: Nested 嵌套用于JSON对象的数组
Geo地理数据类型
Geo-point 用于经纬度的点 (lat/lon points)
Geo-shape 用于多边形等复杂形状
专业数据类型
IP ip for IPv4 and IPv6 addresses
Shape shape for arbitrary cartesian geometries.
Histogram histogram for pre-aggregated numerical values for percentiles aggregations.
…
数组
在Elasticsearch中,数组不需要专用的字段数据类型。默认情况下,任何字段都可以包含零个或多个值&