1. 程式人生 > >elasticsearch優化

elasticsearch優化

arc delet url ces pre code acc ice 8.0

[toc]

1、刪除歷史索引

導出所有的索引

 curl  -u   USER:PASSWORD   http://IP:9200/_cat/indices?v > indices.20140127

基於導出的索引刪除

 curl  -XDELETE  -u USER:PASSWORD   http://IP:9200/nginx-access-2018.01.*

2、關閉冷索引

 curl  -XPOST -u USER:PASSWORD  http://IP:9200/nginx-access-2018.01.*/_close 

elasticsearch優化