New Reindex API also for Java?


I googled & searched the documentation, but I didn't find any example code where the new reindex API is used from Java. Is there a way?
Is anyone using it in Java and could post some example code?


This shows how to build the requests. Just make sure that you've configured the reindex module as a dependency and added it when creating the client. Sorry about this. It is super convenient that _reindex is a module instead of directly in Elasticsearch's core for everyone except folks who want to use it from the java api.