# How do I lock a document for update using elasticsearch python module

**URL:** <https://discuss.elastic.co/t/how-do-i-lock-a-document-for-update-using-elasticsearch-python-module/2363>\
**Category:** Elasticsearch\
**Created:** [June 10, 2015, 6:03pm UTC](https://discuss.elastic.co/t/how-do-i-lock-a-document-for-update-using-elasticsearch-python-module/2363 "2015-06-10T18:03:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@Steve\_](https://discuss.elastic.co/u/Steve_)\
**Post date:** [June 10, 2015, 6:03pm UTC](https://discuss.elastic.co/t/how-do-i-lock-a-document-for-update-using-elasticsearch-python-module/2363/1 "2015-06-10T18:03:27Z")

</div>

I've checked out the ES document on 'Solving Concurrency Issues' but can't see how to do this using the elasticsearch 1.6 python module. Any example of locking a document before update would be appreciated.

---

<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, 12:08am UTC](https://discuss.elastic.co/t/how-do-i-lock-a-document-for-update-using-elasticsearch-python-module/2363/2 "2017-07-06T00:08:31Z")

</div>


