# Reindex API not working using Java Rest High Level Client 6.6.1

**URL:** <https://discuss.elastic.co/t/reindex-api-not-working-using-java-rest-high-level-client-6-6-1/245835>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [August 21, 2020, 1:22am UTC](https://discuss.elastic.co/t/reindex-api-not-working-using-java-rest-high-level-client-6-6-1/245835 "2020-08-21T01:22:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunayana\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunayana_v/32/74271_2.png) [@Sunayana\_V](https://discuss.elastic.co/u/Sunayana_V)\
**Post date:** [August 21, 2020, 1:22am UTC](https://discuss.elastic.co/t/reindex-api-not-working-using-java-rest-high-level-client-6-6-1/245835/1 "2020-08-21T01:22:03Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 18, 2020, 1:22am UTC](https://discuss.elastic.co/t/reindex-api-not-working-using-java-rest-high-level-client-6-6-1/245835/2 "2020-09-18T01:22:17Z")

</div>

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