Context:
I want to reindex a (remote) index, with the JAVA client (RestHighLevelClient, right ?) using the client version 7.2.1 (but I can probably upgrade if needed).
Also, I want to use a wait_for_completion=false to not keep the http call during the index.
Following the documentation:
- https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-high-document-reindex.html --> I got a taskId.
- I assume that I should not use a transport client, as this will be deprecated
- https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-docs-update-by-query.html#java-docs-update-by-query-task-api explain how to use the taskAPI, and ..
- https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin.html how to get an 'admin' client.
However, I don't have the method "admin" on my RestHighLevelClient
Question:
- Can I achieve an aynchronious reindex operation and have the status of this task with the Java RestHighLevelClient
- If not, did you have any other alternative. I don't really want to rely on curl/httpget stuff ideally.