Remove nickname and index in elastic search

I am working on elastic search, and I have the following situation.

  • I have two indexes index1 and index2.
  • Alias1 points to index1 and index2.
  • Alias2 points to index2.

I would like to remove all of them. Do I need to remove index1, index2, and then remove the aliases? Will there be aliases if I delete both indexes? If they exist, what is the java API to remove these aliases?

+4
source share
2 answers

After the index is deleted, the alias will also be deleted.

In your case, you can directly remove index1 and index2.

Note. I experimented in ES 1.7

+6
source

, , ,

0

Source: https://habr.com/ru/post/1627529/


All Articles