Reindex API not working using Java Rest High Level Client 6.6.1

Hi all,

ElasticSearch Version : 6.7
Rest Hight Level Client Version: 6.6.1

I'm trying to use Reindex API https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.6/java-rest-high-document-reindex.html

ReindexRequest request = new ReindexRequest(); // this is good
request.setSourceIndices("source1", "source2"); //method not detected
request.setDestIndex("dest"); // method not detected

I have built the rest high level client from Maven - Maven-org-elasticsearch-client_elasticsearch-rest-high-level-client = 6.6.1

setSourceIndices and setDestIndex are not getting recognized and and when i open ReindexRequest class to verify if they actually exists, they are not there.

So, could you please suggest alternatives/next steps to perform the Re-index here

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.