Home > Mobile >  About alias implementation in elastic search
About alias implementation in elastic search

Time:05-18

I would like to ask about the methods of alias in elastic search, how are addAlias and removeAlias implemented? How do they avoid problems with atomicity among other operations? For example, how to ensure that the alias information is always in the state at the beginning of the operation when performing an operation? Because I'm not very familiar with the code, I can't find the corresponding code. Thanks!

CodePudding user response:

You can take a look at the Elasticsearch class called AliasAction where add and remove alias functionality is implemented as part of implementation of the above abstract class, for example addAlias is implemented as part of Add class and similarly remove action has its own class and logic.

  • Related