# Is there any way in bulk api to update all documents present in index in one short

**URL:** <https://discuss.elastic.co/t/is-there-any-way-in-bulk-api-to-update-all-documents-present-in-index-in-one-short/188008>\
**Category:** Elasticsearch\
**Created:** [June 28, 2019, 9:40am UTC](https://discuss.elastic.co/t/is-there-any-way-in-bulk-api-to-update-all-documents-present-in-index-in-one-short/188008 "2019-06-28T09:40:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BleedCode](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@BleedCode](https://discuss.elastic.co/u/BleedCode)\
**Post date:** [June 28, 2019, 9:40am UTC](https://discuss.elastic.co/t/is-there-any-way-in-bulk-api-to-update-all-documents-present-in-index-in-one-short/188008/1 "2019-06-28T09:40:04Z")

</div>

Is there any way to update all the documents present in index without mentioning id in request body.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fd12988ed7023d2686fefeec0f455f50008f2726.png)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 28, 2019, 9:53am UTC](https://discuss.elastic.co/t/is-there-any-way-in-bulk-api-to-update-all-documents-present-in-index-in-one-short/188008/2 "2019-06-28T09:53:03Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

May be use update by query api then?

---

<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 26, 2019, 9:53am UTC](https://discuss.elastic.co/t/is-there-any-way-in-bulk-api-to-update-all-documents-present-in-index-in-one-short/188008/3 "2019-07-26T09:53:03Z")

</div>

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