2016-11-08 98 views
1

在elasticsearch 2.2节点上,我意外地创建了一个名为'%{[index]}'的索引。 这个指数如何被删除?如何用特殊字符名称去除弹性索引?

curl -XDELETE 'http://localhost:9200/%{[index]}/' 

curl: (3) [globbing] nested brace in column 28而失败。

回答

2

你只需要URL编码的特殊字符的索引名,这样,你指数将神奇地消失了:

curl -XDELETE 'http://localhost:9200/%25%7B%5Bindex%5D%7D/'