Hi,
I’ve found that multiple actions on the Alias API do not work properly. While it works fine in Kibana, it doesn't work in the .NET Elastic Client v8.15. Here’s my code:"
await _elasticClient.Indices.UpdateAliasesAsync(x => x.Actions(y => y
.Remove(r => r.Alias(aliasName).Index("*"))
.Add<ElasticImageDocumentModel>(a => a.Alias(aliasName).Index(indexName))
), cancellationToken);
The logic above removes the existing alias and adds a new one to a different index. It seems to only consider the last action.
References: