# How to do bulk update in elastic-search?

**URL:** <https://discuss.elastic.co/t/how-to-do-bulk-update-in-elastic-search/88946>\
**Category:** Elasticsearch\
**Created:** [June 11, 2017, 11:31am UTC](https://discuss.elastic.co/t/how-to-do-bulk-update-in-elastic-search/88946 "2017-06-11T11:31:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patil-akshay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patil-akshay/32/15295_2.png) [@patil-akshay](https://discuss.elastic.co/u/patil-akshay)\
**Post date:** [June 11, 2017, 11:31am UTC](https://discuss.elastic.co/t/how-to-do-bulk-update-in-elastic-search/88946/1 "2017-06-11T11:31:12Z")

</div>

In index I have fields called Phone Number and Status I want to update status field for some phone number in one go how can I achieve that using curl.  
Is it possible to implement with Javascript?

---

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [June 12, 2017, 3:32pm UTC](https://discuss.elastic.co/t/how-to-do-bulk-update-in-elastic-search/88946/2 "2017-06-12T15:32:50Z")

</div>

Try UpdateByQuery API

[https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html)

using scripts you can update the status in one go

---

<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 10, 2017, 3:33pm UTC](https://discuss.elastic.co/t/how-to-do-bulk-update-in-elastic-search/88946/3 "2017-07-10T15:33:07Z")

</div>

Closed on July 10, 2017, 3:33pm UTC

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