用以下的請求來
刪除索引:
/my_index
你也可以這樣刪除多個索引:
/index_one
,index_two
delete
/index_
*你甚至可以這樣刪除 全部
索引:/_all
delete
/*對一些人來說,能夠用單個命令來刪除所有資料可能會導致可怕的後果。如果你想要避免意外的大量刪除, 你可以在你的elasticsearch.yml
做如下配置:
action.destructive_requires_name: true
這個設定使刪除只限於特定名稱指向的資料, 而不允許通過指定_all
或萬用字元來刪除指定索引庫。你同樣可以通過 cluster state api 動態的更新這個設定。
ES刪除索引
es刪除索引api 例 刪除所有為logstash的索引 官方說明 shell curl xdelete es檢視索引 shell curl 刪除指令碼 home trade manage.sh shell bin bash 列印出所有索引,排除掉hf,fund indexs curl awk eg...
ES 二 索引的查詢更新刪除
單個索引查詢 test public void queryindex 結果 org.elasticsearch.transport.client.prebuilttransportclient 783ec989 需要注釋掉之前獲取客戶端物件的client.close 方法 多個條件的查詢 test ...
ES的建立索引,刪除查詢等
在hive建立es表 lp能力查詢 post clue strategies lp ability lp ability search?pretty from 0,size 5600 查5條 get clue strategies lp ability lp ability search?prett...