elasticsearch 筆記六 核心元素據

2021-08-29 18:24:39 字數 474 閱讀 5902

(1) 代表乙個document放在那個index 中

(2) 類似的資料放在乙個索引,非類似的資料放在不同的索引

(3)index 中包含了很多類似的document

(4)索引名稱必須是小寫,不能用下劃線開頭

(1)代表document 屬於index中的那個類別

(2)乙個索引通常會劃分為多個type,邏輯上對index中有些許不同幾類資料進行分類

(3)type名稱可以是大寫,但是同時不餓能下劃線開頭,不能包含逗號

(1) 代表document的唯一標誌

(2) 我們可以手動指定document的id,也可以不指定,由es自動為我們建立

(1) _source元素據:就是說,我們在建立乙個document的時候,使用那個在request body 中的json串,預設情況下會原封不動的

給我們返回來

(2)定製返回結果,指定_source 中,返回那些field

Elasticsearch 學習筆記

參考 關係型資料庫 elasticsearch 資料庫database索引index,支援全文檢索 表table型別type 資料行row文件document,但不需要固定結構,不同文件可以具有不同字段集合 資料列column字段field 模式schema 索引字段型別numeric dataty...

ElasticSearch學習筆記

2 解壓檔案unzip master.zip 3 允許外掛程式鏈結es,開啟跨域,需要修改elasticsearch的配置檔案elasticsearch.yml,檔案新增兩行 複製 4 進入elasticsearch目錄,啟動elasticsearch.bin elasticsearch 5 安裝e...

elasticsearch筆記 其他

put movies name plot put index doc 1 get index search put index put index doc 1 get index search get twitter search put index put index put index put ...