# Questions around \`update\_by\_query\` endpoint

**URL:** https://discuss.elastic.co/t/questions-around-update-by-query-endpoint/230264
**Category:** Elasticsearch
**Created:** [April 28, 2020, 10:42pm UTC](https://discuss.elastic.co/t/questions-around-update-by-query-endpoint/230264 "2020-04-28T22:42:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ljak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ljak/32/40307_2.png) [@ljak](https://discuss.elastic.co/u/ljak)
#### Post date: [April 28, 2020, 10:42pm UTC](https://discuss.elastic.co/t/questions-around-update-by-query-endpoint/230264/1 "2020-04-28T22:42:57Z")

</div>

Hi everyone,

Just read the doc page [Update By Query API | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html#docs-update-by-query-response-body) and have some questions:

> all failures that are returned by the failing bulk request are returned in the failures element;

**Does that mean that the `failure` key from response contains only the first failure or also the documents that have not been updated due to the abort ?**

> The parameter `conflicts=proceed` means that we do not abort the process (and we count the number of `version_conflicts`).

**Does that mean that `version_conflicts` = the size of `failure` array in that case ?**

> `wait_for_completion=true` parameter

**seems to mean that the response will no be sent until the process is done ?**

> retries: The number of retries attempted by update by query. bulk is the number of bulk actions retried, and search is the number of search actions retried.

**Should we use that to manage/assure that the process is done ?**

Any ideas ?

Thanks!

---

<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: [May 26, 2020, 10:43pm UTC](https://discuss.elastic.co/t/questions-around-update-by-query-endpoint/230264/2 "2020-05-26T22:43:11Z")

</div>

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