# Update\_by\_query list of updated/not updated

**URL:** <https://discuss.elastic.co/t/update-by-query-list-of-updated-not-updated/168432>\
**Category:** Elasticsearch\
**Created:** [February 14, 2019, 2:50pm UTC](https://discuss.elastic.co/t/update-by-query-list-of-updated-not-updated/168432 "2019-02-14T14:50:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tagarito](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@Tagarito](https://discuss.elastic.co/u/Tagarito)\
**Post date:** [February 14, 2019, 2:50pm UTC](https://discuss.elastic.co/t/update-by-query-list-of-updated-not-updated/168432/1 "2019-02-14T14:50:27Z")

</div>

Hello,

When using the \_update API if we specify \_source:true we are able to retrieve the updated document.

Is there any way to return a list of the updated/not updated documents when using the update\_by\_query api?

example:

```

{
    "took": 14,
    "timed_out": false,
    "total": 1,
    "updated": 1,
    "deleted": 0,
    "batches": 1,
    "version_conflicts": 0,
    "noops": 0,
    "retries": {
        "bulk": 0,
        "search": 0
    },
    "throttled_millis": 0,
    "requests_per_second": -1,
    "throttled_until_millis": 0,
    "failures": [],

    "successHitList": [..]
}

```

---

<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:** [March 14, 2019, 2:50pm UTC](https://discuss.elastic.co/t/update-by-query-list-of-updated-not-updated/168432/2 "2019-03-14T14:50:35Z")

</div>

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