ES 数据类型
本文 Elasticsearch 版本为 7.2
1. 核心数据类型
(1)字符串类型: text, keyword
(2)数字类型:long
, integer
, short
, byte
, double
, float
, half_float
, scaled_float
(3)日期:date
(4)日期 纳秒:date_nanos
(5)布尔型:boolean
(6)Binary:binary
(7)Range: integer_range
, float_range
, long_range
, double_range
, date_range
2. 复杂数据类型
(1)Object: object(for single JSON objects)
(2)Nested: nested
(for arrays of JSON objects)
3. 地理数据类型
(1)Geo-point: geo_point (for lat/lon points)
(2)Geo-shape: geo_shape (for complex shapes like polygons)
4. 特殊数据类型
(1)IP: ip (IPv4 和 IPv6 地址)
(2)Completion类型:completion (to provide auto-complete suggestions)
(3)Token count:token_count (to count the number of tokens in a string)
(4)mapper-murmur3:murmur3(to compute hashes of values at index-time and store them in the index)
(5)mapper-annotated-text:annotated-text (to index text containing special markup (typically used for identifying named entities))
(6)Percolator:(Accepts queries from the query-dsl)
(7)Join:(Defines parent/child relation for documents within the same index)
(8)Alias:(Defines an alias to an existing field.)
(9)Rank feature:(Record numeric feature to boost hits at query time.)
(10)Rank features:(Record numeric features to boost hits at query time.)
(11)Dense vector:(Record dense vectors of float values.)
(12)Sparse vector:(Record sparse vectors of float values.)
(13)Search-as-you-type:(A text-like field optimized for queries to implement as-you-type completion)
5.数组类型
在Elasticsearch中,数组不需要一个特定的数据类型,任何字段都默认可以包含一个或多个值,当然,这多个值都必须是字段指定的数据类型。
6.Multi-fields
Multi-fields 通常用来以不同的方式或目的索引同一个字段。比如,一个字符串类型字段可以同时被映射为 text 类型以用于全文检索、 keyword字段用于排序或聚合。又或者,你可以用standard分析器、english分析器和french分析器来索引同一个 text字段。
最新文章
- 【腾讯Bugly干货分享】移动客户端中高效使用SQLite
- CentOS 7编译安装gcc5.3碰到的坑
- mysql错误:“ Every derived table must have its own alias”(每个派生出来的表都必须有一个自己的别名)
- WinForm数字小键盘/WPF数字小键盘
- java新手笔记32 jdk5新特性
- css实现带箭头选项卡
- windows下go开发环境部署 (sublime+gosublime+geocode)
- JavaScript—W3school
- django访问sqlserver中的坑
- 2012高校GIS论坛
- 小米路由器mini建FTP
- Git分支合并选择
- JavaScript实现模糊推荐的input框(类似百度搜索框)
- 零基础学习Hadoop
- Leetcode解题-链表(2.2.0)基础类
- OutOfMemoryError/OOM/内存溢出异常实例分析--堆内存溢出
- 时间插件datepicker(jQuery-UI,bootstrap)和jquery-steps的冲突解决。。。
- SSM单元测试时出现:Failed to load ApplicationContext的一种可能解决办法
- go捕获Ctrl+C信号
- oracle listener.ora文件配置
热门文章
- Mongo Restore
- javascript---操作节点
- Find a multiple POJ - 2356 【鸽巢原理应用】
- 016_编写脚本快速克隆 KVM 虚拟机
- Zabbix+Grafana 展示示例1
- P2058 海港
- MySQL数据分析(7)-SQL的两大学习框架
- php 图片格式转换-亲测ok
- CentOS7根目录磁盘扩容(/dev/mapper/centos-root 空间不足)
- HDU 1087 Super Jumping! Jumping! Jumping! ——(LIS变形)