# Can I block document names in Elasticsearch?

**URL:** <https://discuss.elastic.co/t/can-i-block-document-names-in-elasticsearch/240455>\
**Category:** Elasticsearch\
**Created:** [July 9, 2020, 6:21am UTC](https://discuss.elastic.co/t/can-i-block-document-names-in-elasticsearch/240455 "2020-07-09T06:21:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Callonski](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Callonski](https://discuss.elastic.co/u/Callonski)\
**Post date:** [July 9, 2020, 6:21am UTC](https://discuss.elastic.co/t/can-i-block-document-names-in-elasticsearch/240455/1 "2020-07-09T06:21:16Z")

</div>

My problem is ingesting data that does not come in order into elasticsearch. The data is customer profiles, and if a customer updates their profile and then deletes it. I will receive two messages. One Update and one Delete. Now the delete might arrive before the Update, causing the update to create the profile again. I guess I can handle this is multiple different ways, but I'm wondering if there is any functionality in elasticsearch, where the document-name that has been deleted cannot be re-created. Something like a freeze of a document name?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 9, 2020, 7:51am UTC](https://discuss.elastic.co/t/can-i-block-document-names-in-elasticsearch/240455/2 "2020-07-09T07:51:25Z")

</div>

No there's not. You could use [versioning](https://www.elastic.co/guide/en/elasticsearch/reference/7.8/docs-index_.html#docs-index-api-query-params) though, but you'd need to manage the manage the numbers externally.

---

<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:** [August 6, 2020, 8:04am UTC](https://discuss.elastic.co/t/can-i-block-document-names-in-elasticsearch/240455/3 "2020-08-06T08:04:01Z")

</div>

Closed on August 6, 2020, 8:04am UTC

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