diff --git a/CHANGELOG.md b/CHANGELOG.md index f3aab65005..5493459f85 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated ### Removed ### Fixed +* Fixed version parameters for DeleteDocument by @pheyse24 [#2048](https://github.com/ruflin/Elastica/pull/2048) ### Security ## [7.1.3](https://github.com/ruflin/Elastica/compare/7.1.2...7.1.3) diff --git a/src/Bulk/Action/DeleteDocument.php b/src/Bulk/Action/DeleteDocument.php index 23e6311afd..bcbd5d857b 100644 --- a/src/Bulk/Action/DeleteDocument.php +++ b/src/Bulk/Action/DeleteDocument.php @@ -19,7 +19,8 @@ protected function _getMetadata(AbstractUpdateAction $action): array return $action->getOptions([ '_index', '_id', - 'version', + 'if_seq_no', + 'if_primary_term', 'version_type', 'routing', 'parent',