How do I force the deletion of version-conflicting data

Hi,
We are now using _delete_by_query to do the batch deletion of data. But in the process I see the VersionConflictEngineException [type][id]: version conflict, current version [2] is different than the one provided [1] .The version we are using is 5.5.3.Could it be a bug?How can I force deletion of version-conflicting data.

Welcome! :slight_smile:

Per the docs;

_delete_by_query gets a snapshot of the index when it starts and deletes what it finds using internal versioning. That means that you’ll get a version conflict if the document changes between the time when the snapshot was taken and when the delete request is processed. When the versions match the document is deleted.

So you will likely need to run the query again.

thanks:)

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