# \_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:** 1\
**Showing post:** 2

<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

---

_[View the full topic](https://discuss.elastic.co/t/-reindex-and--update-by-query-equivalent-apis-in-java-transport-client/50615)._
