# Asynchronous Reindex request in ElasticSearch 6.3 is not working

**URL:** <https://discuss.elastic.co/t/asynchronous-reindex-request-in-elasticsearch-6-3-is-not-working/167910>\
**Category:** Elasticsearch\
**Created:** [February 11, 2019, 6:07pm UTC](https://discuss.elastic.co/t/asynchronous-reindex-request-in-elasticsearch-6-3-is-not-working/167910 "2019-02-11T18:07:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harshraj\_Shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshraj_shinde/32/49860_2.png) [@Harshraj\_Shinde](https://discuss.elastic.co/u/Harshraj_Shinde)\
**Post date:** [February 11, 2019, 6:07pm UTC](https://discuss.elastic.co/t/asynchronous-reindex-request-in-elasticsearch-6-3-is-not-working/167910/1 "2019-02-11T18:07:14Z")

</div>

Hello Guys,  
I have been trying this code

```
 ReindexRequestBuilder builder = ReindexAction.INSTANCE.newRequestBuilder(getClient())
                .source(sourceIndexName).abortOnVersionConflict(false)
                .destination(destinationIndexName);

        builder.destination().setOpType(DocWriteRequest.OpType.CREATE);
        builder.abortOnVersionConflict(false);
        BulkByScrollResponse response = builder.get();

        System.out.println("Task is in process");

```

Actually I wanted to run this reindex task Asynchronously, I have gone through the docs also in the latest version we can see reindex has different methods for synchronous and asynchronous, but as I am using ElasticSearch 6.3 you can see the last line i.e "Task is in process" is getting the control after reindex is complete. Also I need to track this task with TaskApi, but its not possible I am getting empty tasklist.

Can anyone please help.

Thanks in advance.

---

<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:** [March 11, 2019, 6:07pm UTC](https://discuss.elastic.co/t/asynchronous-reindex-request-in-elasticsearch-6-3-is-not-working/167910/2 "2019-03-11T18:07:15Z")

</div>

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