# Bulk Partial Update in elasticsearch with Python

**URL:** <https://discuss.elastic.co/t/bulk-partial-update-in-elasticsearch-with-python/239575>\
**Category:** Elasticsearch\
**Created:** [July 2, 2020, 6:19am UTC](https://discuss.elastic.co/t/bulk-partial-update-in-elasticsearch-with-python/239575 "2020-07-02T06:19:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnny1](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@johnny1](https://discuss.elastic.co/u/johnny1)\
**Post date:** [July 2, 2020, 6:19am UTC](https://discuss.elastic.co/t/bulk-partial-update-in-elasticsearch-with-python/239575/1 "2020-07-02T06:19:40Z")

</div>

I want to perform a bulk partial update in python for elasticsearch because I don't want to update the whole documents but only specific fields. Can you please give an example? Best thanks in advance.

---

<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:** [July 2, 2020, 6:33am UTC](https://discuss.elastic.co/t/bulk-partial-update-in-elasticsearch-with-python/239575/2 "2020-07-02T06:33:30Z")

</div>

Updating a field behind the scene will get the existing document, merge with the field you want to update and then reindex the whole document.

So sending the whole document again is sometimes easier.

Anyway, here is what you asked for: [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)

---

<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 30, 2020, 6:33am UTC](https://discuss.elastic.co/t/bulk-partial-update-in-elasticsearch-with-python/239575/3 "2020-07-30T06:33:31Z")

</div>

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