# Java RestHighLevelClient UpdateByQuery with Task Response

**URL:** https://discuss.elastic.co/t/java-resthighlevelclient-updatebyquery-with-task-response/244870
**Category:** Elasticsearch
**Created:** [August 13, 2020, 11:20am UTC](https://discuss.elastic.co/t/java-resthighlevelclient-updatebyquery-with-task-response/244870 "2020-08-13T11:20:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Leynch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leynch/32/74969_2.png) [@Leynch](https://discuss.elastic.co/u/Leynch)
#### Post date: [August 13, 2020, 11:20am UTC](https://discuss.elastic.co/t/java-resthighlevelclient-updatebyquery-with-task-response/244870/1 "2020-08-13T11:20:25Z")

</div>

The updateByQuery API of elasticsearch has the possibility to get a task response if the parameter `wait_for_completion` is set to `false` ([https://www.elastic.co/guide/en/elasticsearch/reference/7.8/docs-update-by-query.html#docs-update-by-query-task-api](https://www.elastic.co/guide/en/elasticsearch/reference/7.8/docs-update-by-query.html#docs-update-by-query-task-api)).

But the Java RestHighLevelClient doesn't seem to support this feature. I search for something like described here for `reindex` but for `updateByQuery` ([https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.8/java-rest-high-document-reindex.html#java-rest-high-document-reindex-task-submission](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.8/java-rest-high-document-reindex.html#java-rest-high-document-reindex-task-submission)).

1. Is there any reason why this is not supported?
2. What are my possibilities for workarounds? (LowLevelClient?)

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 13, 2020, 12:17pm UTC](https://discuss.elastic.co/t/java-resthighlevelclient-updatebyquery-with-task-response/244870/2 "2020-08-13T12:17:52Z")

</div>

This is indeed is missing and has just been added and will be ported to 7.10. See [https://github.com/elastic/elasticsearch/pull/58552](https://github.com/elastic/elasticsearch/pull/58552)

---

<div class="post-metadata">

### Author: ![Leynch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leynch/32/74969_2.png) [@Leynch](https://discuss.elastic.co/u/Leynch)
#### Post date: [August 13, 2020, 12:33pm UTC](https://discuss.elastic.co/t/java-resthighlevelclient-updatebyquery-with-task-response/244870/3 "2020-08-13T12:33:53Z")

</div>

Nice! Thank you for the super fast answer!

---

<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 10, 2020, 12:34pm UTC](https://discuss.elastic.co/t/java-resthighlevelclient-updatebyquery-with-task-response/244870/4 "2020-09-10T12:34:01Z")

</div>

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