# Update multiple documents by java client

**URL:** https://discuss.elastic.co/t/update-multiple-documents-by-java-client/96343
**Category:** Elasticsearch
**Created:** [August 8, 2017, 9:07pm UTC](https://discuss.elastic.co/t/update-multiple-documents-by-java-client/96343 "2017-08-08T21:07:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jessec](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@Jessec](https://discuss.elastic.co/u/Jessec)
#### Post date: [August 8, 2017, 9:07pm UTC](https://discuss.elastic.co/t/update-multiple-documents-by-java-client/96343/1 "2017-08-08T21:07:48Z")

</div>

In my project I want to update multiple documents that match a filter. I look up "Update" in the official references and found:

"Note that as of this writing, updates can only be performed on a single document at a time. In the future, Elasticsearch might provide the ability to update multiple documents given a query condition (like an SQL UPDATE-WHERE statement)."

I feel that this use case is pretty common. What is the best way to handle it by using java client?

---

<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 5, 2017, 9:10pm UTC](https://discuss.elastic.co/t/update-multiple-documents-by-java-client/96343/2 "2017-09-05T21:10:22Z")

</div>

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