在弹性搜索中删除别名和索引(Delete an alias and index in elastic search)
我正在进行弹性搜索,我有以下情况。
我有两个索引index1和index2。 Alias1指向index1和index2。 Alias2指向index2。我想删除所有这些。 我是否需要删除index1,index2然后删除别名? 如果删除两个索引,是否存在别名? 如果它们存在,那么删除这些别名的java API是什么?
I am working on elastic search and I have the following situation.
I have two indices index1 and index2. Alias1 points to index1 and index2. Alias2 points to index2.I would like to delete all of them. Do I need to delete index1, index2 and then delete aliases ? Will the aliases exist if I delete both the indices ? If they exist, what are the java API's to delete those aliases ?
最满意答案
删除索引后,别名也将被删除。
在您的情况下,您可以直接删除index1和index2。
注意:我在ES 1.7中进行了实验
Once you have deleted your index, the alias will also get deleted.
In your case, you can directly delete index1 and index2.
Note: I've experimented it in ES 1.7
更多推荐
发布评论