# \_reindex and \_update\_by\_query equivalent apis in java transport client?

**URL:** https://discuss.elastic.co/t/-reindex-and--update-by-query-equivalent-apis-in-java-transport-client/50615
**Category:** Elasticsearch
**Created:** [May 21, 2016, 8:41am UTC](https://discuss.elastic.co/t/-reindex-and--update-by-query-equivalent-apis-in-java-transport-client/50615 "2016-05-21T08:41:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nikhilbhide](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@nikhilbhide](https://discuss.elastic.co/u/nikhilbhide)
#### Post date: [May 21, 2016, 8:41am UTC](https://discuss.elastic.co/t/-reindex-and--update-by-query-equivalent-apis-in-java-transport-client/50615/1 "2016-05-21T08:41:59Z")

</div>

Hi,  
I am using ES 2.3 version and using \_reindex api; however, I could not find corresponding api in java transport client. Also, I could not find any documentation regarding it. For time being, to use the api I am using rest api.  
Can some one please point out the java transport client api for these two new features - \_reindex and \_update\_by\_query?

Regards,  
Nikhil

---

<div class="post-metadata">

### Author: ![trango](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@trango](https://discuss.elastic.co/u/trango)
#### Post date: [May 22, 2016, 4:44am UTC](https://discuss.elastic.co/t/-reindex-and--update-by-query-equivalent-apis-in-java-transport-client/50615/2 "2016-05-22T04:44:30Z")

</div>

Hi,

reindex and update\_by\_query are implemented inside reindex module (aka built-in plugin). In order to use their Java API, you need to:

1. Add org.elasticsearch.module:reindex to the dependency.
2. Add ReindexPlugin when you init Transport Client.

The discussions at [Reindex Java API](https://discuss.elastic.co/t/reindex-java-api/45923) might be helpful.

Regards,

Trango

---

<div class="post-metadata">

### Author: ![nikhilbhide](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@nikhilbhide](https://discuss.elastic.co/u/nikhilbhide)
#### Post date: [May 22, 2016, 6:40pm UTC](https://discuss.elastic.co/t/-reindex-and--update-by-query-equivalent-apis-in-java-transport-client/50615/3 "2016-05-22T18:40:21Z")

</div>

Great. I was looking for the same.

---

<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: [July 5, 2017, 10:49pm UTC](https://discuss.elastic.co/t/-reindex-and--update-by-query-equivalent-apis-in-java-transport-client/50615/4 "2017-07-05T22:49:55Z")

</div>


