Elasticsearch 支持的字段类型及其查询方式

以下是 Elasticsearch 支持的字段类型及其查询方式的表格:

字段类型 描述 查询方式
Text 存储文本数据 match、match_phrase、multi_match、common_terms、query_string
Keyword 存储关键字数据 term、terms、range、prefix、wildcard、regexp、fuzzy、exists
Numeric 存储数值数据 range、term、terms、exists
Date 存储日期数据 range、term、terms、exists
Boolean 存储布尔值 term、terms、exists
Binary 存储二进制数据 -
Object 存储嵌套的 JSON 对象 nested、has_child、has_parent
Nested 存储嵌套的 JSON 对象,但可以独立查询 nested、has_child、has_parent
Ip 存储 IPv4 或 IPv6 地址 term、terms、range、exists
Geo Point 存储经纬度坐标 geo_distance、geo_bounding_box、geo_polygon、geo_shape
Geo Shape 存储地理形状 geo_shape、geo_bounding_box、geo_distance、geo_polygon
Completion 存储自动补全建议 completion、prefix

你可能感兴趣的:(elasticsearch,大数据,搜索引擎)