# Java API update\_by\_query - 5.0.0-Alpha4

**URL:** <https://discuss.elastic.co/t/java-api-update-by-query-5-0-0-alpha4/55816>\
**Category:** Elasticsearch\
**Created:** [July 19, 2016, 12:50am UTC](https://discuss.elastic.co/t/java-api-update-by-query-5-0-0-alpha4/55816 "2016-07-19T00:50:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isaias\_Barroso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/isaias_barroso/32/3980_2.png) [@Isaias\_Barroso](https://discuss.elastic.co/u/Isaias_Barroso)\
**Post date:** [July 19, 2016, 12:50am UTC](https://discuss.elastic.co/t/java-api-update-by-query-5-0-0-alpha4/55816/1 "2016-07-19T00:50:00Z")

</div>

Hi all,

I've seen the link for previous version [Java API corresponding to update\_by\_query](https://discuss.elastic.co/t/java-api-corresponding-to-update-by-query/49206) but I didn't see some reference for 5.0.0-AlphaX. There is some information about how to use it from Java API or the best way is to call Vanilla Rest API?

Best regards

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [July 19, 2016, 1:10am UTC](https://discuss.elastic.co/t/java-api-update-by-query-5-0-0-alpha4/55816/2 "2016-07-19T01:10:09Z")

</div>

For now you might be stuck with REST. We haven't [published](http://search.maven.org/#search%7Cga%7C1%7Corg.elasticsearch.module) the jars for any of the modules for 5.0 by mistake. I believe that has been fixed in master as of a couple of days ago. So for the next alpha/beta/whatever-it-is there will be a transport client jar with all the right dependencies. You shouldn't need to do the maven steps or the `addPlugin` steps.

---

<div class="post-metadata">

**Author:** ![Isaias\_Barroso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/isaias_barroso/32/3980_2.png) [@Isaias\_Barroso](https://discuss.elastic.co/u/Isaias_Barroso)\
**Post date:** [July 19, 2016, 1:28am UTC](https://discuss.elastic.co/t/java-api-update-by-query-5-0-0-alpha4/55816/3 "2016-07-19T01:28:32Z")

</div>

Thanks

Although the alpha says that it isn't intended for production I'm using in a product that is in Beta on a customer, so I'll start with Rest and change for Java API on next release.

Best regards

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [July 19, 2016, 1:40am UTC](https://discuss.elastic.co/t/java-api-update-by-query-5-0-0-alpha4/55816/4 "2016-07-19T01:40:41Z")

</div>

Cool.

Just remember that the alphas aren't wire or on disk compatible with each other. So you'll need a full cluster restart when you upgrade and the index might not work. So you might have to delete it and reindex.

---

<div class="post-metadata">

**Author:** ![Isaias\_Barroso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/isaias_barroso/32/3980_2.png) [@Isaias\_Barroso](https://discuss.elastic.co/u/Isaias_Barroso)\
**Post date:** [July 19, 2016, 1:57am UTC](https://discuss.elastic.co/t/java-api-update-by-query-5-0-0-alpha4/55816/5 "2016-07-19T01:57:59Z")

</div>

Nice,

It won't be a problem. I'm prepared to do that actions and my customer too 🙂

---

<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:34pm UTC](https://discuss.elastic.co/t/java-api-update-by-query-5-0-0-alpha4/55816/6 "2017-07-05T22:34:35Z")

</div>


