# Updating many documents

**URL:** <https://discuss.elastic.co/t/updating-many-documents/7426>\
**Category:** Elasticsearch\
**Created:** [April 20, 2012, 8:52pm UTC](https://discuss.elastic.co/t/updating-many-documents/7426 "2012-04-20T20:52:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Dojwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_dojwa/32/2307_2.png) [@Marcin\_Dojwa](https://discuss.elastic.co/u/Marcin_Dojwa)\
**Post date:** [April 20, 2012, 8:52pm UTC](https://discuss.elastic.co/t/updating-many-documents/7426/1 "2012-04-20T20:52:28Z")

</div>

Hi,

Is it possible to do the \_update on documents matching given query or  
filter? I don't want to get all documents' ids matching the query and then  
update one by one if it is possible.

Thanks.  
Best regards.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 21, 2012, 3:14pm UTC](https://discuss.elastic.co/t/updating-many-documents/7426/2 "2012-04-21T15:14:12Z")

</div>

No, there isn't a way to run an "update by query", there is an issue  
already open for this, but its not implemented.

On Fri, Apr 20, 2012 at 11:52 PM, Marcin Dojwa [m.dojwa@livechatinc.com](mailto:m.dojwa@livechatinc.com)wrote:

> Hi,
> 
> Is it possible to do the \_update on documents matching given query or  
> filter? I don't want to get all documents' ids matching the query and then  
> update one by one if it is possible.
> 
> Thanks.  
> Best regards.

---

<div class="post-metadata">

**Author:** ![Marcin\_Dojwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_dojwa/32/2307_2.png) [@Marcin\_Dojwa](https://discuss.elastic.co/u/Marcin_Dojwa)\
**Post date:** [April 21, 2012, 6:08pm UTC](https://discuss.elastic.co/t/updating-many-documents/7426/3 "2012-04-21T18:08:50Z")

</div>

Thanks for the answer. Do you know estimated time for this implementation  
to be done?

Best regards

W dniu sobota, 21 kwietnia 2012 użytkownik Shay Banon napisał:

> No, there isn't a way to run an "update by query", there is an issue  
> already open for this, but its not implemented.
> 
> On Fri, Apr 20, 2012 at 11:52 PM, Marcin Dojwa \<[m.dojwa@livechatinc.com](mailto:m.dojwa@livechatinc.com)\<javascript:\_e({}, 'cvml', 'm.dojwa@livechatinc.com');\>
> 
> > wrote:
> 
> > Hi,
> > 
> > Is it possible to do the \_update on documents matching given query or  
> > filter? I don't want to get all documents' ids matching the query and then  
> > update one by one if it is possible.
> > 
> > Thanks.  
> > Best regards.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 25, 2012, 3:30pm UTC](https://discuss.elastic.co/t/updating-many-documents/7426/4 "2012-04-25T15:30:52Z")

</div>

There isn't a date set for it, its a bit tricky to implement, though  
obviously not impossible.

2012/4/21 Marcin Dojwa [m.dojwa@livechatinc.com](mailto:m.dojwa@livechatinc.com)

> Thanks for the answer. Do you know estimated time for this implementation  
> to be done?
> 
> Best regards
> 
> W dniu sobota, 21 kwietnia 2012 użytkownik Shay Banon napisał:
> 
> No, there isn't a way to run an "update by query", there is an issue
> 
> > already open for this, but its not implemented.
> > 
> > On Fri, Apr 20, 2012 at 11:52 PM, Marcin Dojwa [m.dojwa@livechatinc.com](mailto:m.dojwa@livechatinc.com)wrote:
> > 
> > > Hi,
> > > 
> > > Is it possible to do the \_update on documents matching given query or  
> > > filter? I don't want to get all documents' ids matching the query and then  
> > > update one by one if it is possible.
> > > 
> > > Thanks.  
> > > Best regards.

---

<div class="post-metadata">

**Author:** ![Marcin\_Dojwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_dojwa/32/2307_2.png) [@Marcin\_Dojwa](https://discuss.elastic.co/u/Marcin_Dojwa)\
**Post date:** [April 25, 2012, 4:08pm UTC](https://discuss.elastic.co/t/updating-many-documents/7426/5 "2012-04-25T16:08:17Z")

</div>

Thanks,

I will be waiting for it patiently 🙂

Best regards.

W dniu 25 kwietnia 2012 17:30 użytkownik Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com)napisał:

> There isn't a date set for it, its a bit tricky to implement, though  
> obviously not impossible.
> 
> 2012/4/21 Marcin Dojwa [m.dojwa@livechatinc.com](mailto:m.dojwa@livechatinc.com)
> 
> > Thanks for the answer. Do you know estimated time for this implementation  
> > to be done?
> > 
> > Best regards
> > 
> > W dniu sobota, 21 kwietnia 2012 użytkownik Shay Banon napisał:
> > 
> > No, there isn't a way to run an "update by query", there is an issue
> > 
> > > already open for this, but its not implemented.
> > > 
> > > On Fri, Apr 20, 2012 at 11:52 PM, Marcin Dojwa [m.dojwa@livechatinc.com](mailto:m.dojwa@livechatinc.com)wrote:
> > > 
> > > > Hi,
> > > > 
> > > > Is it possible to do the \_update on documents matching given query or  
> > > > filter? I don't want to get all documents' ids matching the query and then  
> > > > update one by one if it is possible.
> > > > 
> > > > Thanks.  
> > > > Best regards.

---

<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 6, 2017, 3:31am UTC](https://discuss.elastic.co/t/updating-many-documents/7426/6 "2017-07-06T03:31:04Z")

</div>


