[Elasticsearch Reference 2x] Mapping - Field datatypes
本文是對官方文件的翻譯,學習elasticsearch之用,錯誤之處歡迎指出。
Field datatypes
Elasticsearch文件中的欄位支援設定許多不同的資料型別:
Core datatypes 核心型別
-
String datatype
string -
Numeric datatype
long, integer, short, byte, double, float -
Date datatype
date -
Boolean datatype
boolean -
Binary datatype
binary
Complex datatypes 混合型別
-
Array datatype
陣列不需要特殊的型別 -
Object datatype
json物件型別 -
Nested datatype
json物件巢狀型別
Geo datatypes 地理位置型別
-
Geo-point datatype
經緯度座標點型別 -
Geo-Shape datatype
地理位置區域型別
Specialised datatypes 特殊型別
-
IPv4 datatype
IPv4地址型別 -
Completion datatype
自動提供suggestion型別 -
Token count datatype
token_count用於計算string的token數量 -
mapper-murmur3
murmur3用於在索引的時候計算hash值,並儲存到index中 -
Attachment datatype
附件型別,需要安裝外掛mapper-attachments支援
Multi-fields
Multi-fields在同一個欄位用不同的方式索引時非常有用。比如同一個string欄位,你可以設定它為analyzed的,用於全文檢索;同時你可以設定它為not_analyzed的,用於排序和聚合。或者,可以使用標準分析器,英語分析器和中文分析器對同一個字串欄位索引。
大部分欄位型別都可以通過fields引數支援multi-fields。
相關文章
- Elasticsearch 的坑爹事——記錄一次mapping field修改過程ElasticsearchAPP
- Elasticsearch MappingElasticsearchAPP
- ElasticSearch(二):MappingElasticsearchAPP
- ElasticSearch 中的 MappingElasticsearchAPP
- Elasticsearch實踐(三):MappingElasticsearchAPP
- Elasticsearch Mapping型別修改ElasticsearchAPP型別
- SAP MRKO Error - For document type RE, an entry is required in field Reference -ErrorUI
- 【ElasticSearch】ElasticSearch 7.x 預設不在支援指定索引型別 Failed to parse mapping [_doc]: Root mapping definitioElasticsearch索引型別AIAPP
- Elasticsearch核心技術(三):Mapping設定ElasticsearchAPP
- ElasticSearch7.3 學習之Mapping核心資料型別及dynamic mappingElasticsearchAPP資料型別
- Elasticsearch從入門到放棄:瞎說MappingElasticsearchAPP
- 如何設計一個高效能 Elasticsearch mappingElasticsearchAPP
- 文件筆記--Datatypes筆記
- 關於 Elasticsearch nested field /script 的一些複雜查詢Elasticsearch
- Datatypes (1) : ROWID and UROWID
- [Elasticsearch] ES 的Mapping 設計在實際場景中應用ElasticsearchAPP
- Using Byte and Char with Character Datatypes
- ABAP 資料結構啟用時的錯誤訊息 - combination reference table field does not exist資料結構
- java反射——FieldJava反射
- Java referenceJava
- undefined reference toUndefined
- MySQL 之 ORDER BY FIELDMySql
- add field security
- yebis error ---depth of fieldError
- 管理mappingAPP
- python生成@2x,@3x圖片小指令碼Python指令碼
- inconsistent datatypes: expected - got CLOB錯誤一例Go
- Qt undefined reference to ***QTUndefined
- undefined reference to `__isnanf'UndefinedNaN
- GCDAsyncSocket_ReferenceGC
- TypeScript 裡的 class fieldTypeScript
- tpextbuilder- Displayers[元件]- FieldUI元件
- ABAP指標field symbol!指標Symbol
- mongoengine.errors.OperationError: Update failed (BSON field ‘no_cursor_timeout‘ is an unknown fieldGoErrorAI
- 11-Overview-Field SelectorsView
- Lucene原始碼解析--Field類原始碼
- 關於servlet mappingServletAPP
- MAPPING TABLE 的作用APP