ElasticSearch基礎入門三

2022-06-25 14:30:15 字數 680 閱讀 2054

作用:1.定義index下的欄位名

2.定義字段型別,比如數值型、浮點型、布林型等

3.定義倒排索引相關的設定,比如是否索引、記錄position等

型別:1、核心資料型別

字串型

text、keyword(不會分詞)

數值型ong、integer、short、byte、double、float、half_floa

日期型別

date

布林型別

boolean

二進位制型別

binary

範圍型別

integer_range、float_range、long_range、double_range、date_range

2、複雜資料型別

陣列array

物件object

巢狀nested object

地理位置資料型別

geo_point、geo_shape

專用型別

ipip位址

completion

實現自動補全

token_count

記錄分詞數

記錄字串hash值

join

為同一索引中的文件定義父/子關係

alias型別

定義現有欄位的別名

ElasticSearch基礎概念

es的index索引,document文件物件,副本,多節點集群等基礎知識 1 通俗的解釋 在elasticsearch中,文件歸屬於一種型別 type 而這些型別存在於索引 index 中,索引名稱必須是小寫 relational db database table row column elas...

Elasticsearch基礎概念

1 索引 索引 index 是elasticsearch存放具體資料的地方,是一類具有相似特徵的文件的集合。elasticsearch中索引的概念具有不同意思,這裡的索引相當於關聯式資料庫中的乙個資料庫例項。在elasticsearch中索引還可以作為動詞,表示對資料進行索引操作。2 型別 在6.0...

ElasticSearch基礎介紹

1 索引 索引 index 是elasticsearch存放具體資料的地方,是一類具有相似特徵的文件的集合。elasticsearch中索引的概念具有不同意思,這裡的索引相當於關聯式資料庫中的乙個資料庫例項。在elasticsearch中索引還可以作為動詞,表示對資料進行索引操作。2 型別 在6.0...