elasticsearch 5.x删除index/type

来源:互联网 发布:淘宝钻石展位有效果吗 编辑:程序博客网 时间:2024/06/05 18:53

elasticsearch 5.x删除index:

在head插件中执行:DELETE ip:port/index 
看到acknowledge{        " true"}即为成功

elasticsearch 5.x删除type:

在kibana界面,dev tools中:POST ip:potrt/index/type/_delete_by_query?conflicts=proceed{  "query": {    "match_all": {}  }}

个人经验,有其他可行方法可回复讨论