码迷,mamicode.com
首页 > Web开发 > 详细

Elasticsearch之curl删除索引库

时间:2017-02-20 18:52:54      阅读:1216      评论:0      收藏:0      [点我收藏+]

标签:title   read   com   blog   image   删除索引   alt   exception   type   

 

  关于curl创建索引库的介绍,请移步

Elasticsearch之curl创建索引库

 

技术分享

[hadoop@djt002 elasticsearch-2.4.3]$ curl -XPUT ‘http://192.168.80.200:9200/zhouls‘
{"error":{"root_cause":[{"type":"index_already_exists_exception","reason":"already exists","index":"zhouls"}],"type":"index_already_exists_exception","reason":"already exists","index":"zhouls"},"status":400}[hadoop@djt002 elasticsearch-2.4.3]$ curl -XPOST ‘http://192.168.80.200:9200/zhouls1‘
{"acknowledged":true}[hadoop@djt002 elasticsearch-2.4.3]$

 

 

 

测试完,及时删除。

技术分享

[hadoop@djt002 elasticsearch-2.4.3]$ curl -XPUT ‘http://192.168.80.200:9200/zhouls‘
{"error":{"root_cause":[{"type":"index_already_exists_exception","reason":"already exists","index":"zhouls"}],"type":"index_already_exists_exception","reason":"already exists","index":"zhouls"},"status":400}[hadoop@djt002 elasticsearch-2.4.3]$ curl -XPOST ‘http://192.168.80.200:9200/zhouls1‘
{"acknowledged":true}[hadoop@djt002 elasticsearch-2.4.3]$ curl -XDELETE ‘http://192.168.80.200:9200/zhouls1‘
{"acknowledged":true}[hadoop@djt002 elasticsearch-2.4.3]$

Elasticsearch之curl删除索引库

标签:title   read   com   blog   image   删除索引   alt   exception   type   

原文地址:http://www.cnblogs.com/zlslch/p/6420583.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!