关于弹性搜索中的别名实现

About alias implementation in elastic search

想问一下elastic search中alias的方法,addAliasremoveAlias实施了吗?他们如何避免 atomicity 等操作出现问题?比如如何保证执行操作时别名信息始终处于操作开始时的状态?因为对代码不是很熟悉,所以找不到对应的代码。谢谢!

您可以查看名为 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 的 Elasticsearch class 操作有其自己的 class 和逻辑。