elasticsearch相關筆記

2021-10-04 15:17:10 字數 474 閱讀 5455

elasticsearch + kibana + nginx
將原索引的資料reindex到新索引:

post _reindex/

,"dest"

:}

刪除原索引:delete vehicle_info將新索引資料再次reindex回舊索引:

post _reindex/

,"dest"

:}

刪除新索引}}

然後在後台_bulk資料時,加上新的字段nlg

建立索引的時候,可以預先定義欄位的型別以及相關屬性,這樣就能夠把日期字段處理成日期,把數字字段處理成數字,把字串字段處理字串值等。

put index/}}

}}}

ElasticSearch相關概念

節點 node 物理概念,乙個執行的elasticearch例項,一般是一台機器上的乙個程序。分片 shard 為了支援更大量的資料,索引一般會按某個維度分成多個部分,每個部分就是乙個分片,分片被節點 node 管理。乙個節點 node 一般會管理多個分片,這些分片可能是屬於同乙份索引,也有可能屬於...

elasticsearch 優化相關

es寫入過程關鍵步驟 資料寫入index buffer緩衝和translog日誌檔案。index buffer indices.memory.index buffer size 大小預設是heap的10 最小值為48m。每隔一秒鐘 index.refresh interval index buffe...

(整理)elasticsearch相關概念

參考 elasticsearch權威指南 elasticsearch sql elasticsearch查詢 elasticsearch multifields說明 23種非常有用的elasticsearch查詢例子 推薦書籍 elasticsearch伺服器開發 資料同步外掛程式 待補充index...