Hello and welcome! This endpoint is a bit hard to find in the client, but here it is:
esClient.indices()
.updateAliases(u -> u
.actions(
Action.of(a -> a
.remove(r -> r
.index("logs-nginx.access-prod")
.alias("logs"))),
Action.of(a -> a
.add(ad -> ad
.index("logs-my_app-default")
.alias("logs")))));
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.