在弹性搜索中删除别名和索引(Delete an alias and index in elastic search)

编程入门 行业动态 更新时间:2024-10-17 17:15:58
在弹性搜索中删除别名和索引(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

更多推荐

本文发布于:2023-08-04 11:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1415253.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:别名   弹性   索引   Delete   search

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!