Can I block document names in Elasticsearch?

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?

No there's not. You could use versioning though, but you'd need to manage the manage the numbers externally.

1 Like

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