In 7.1.0 CHANGELOG.md:
* Addedif_seq_no/if_primary_termto replaceversionfor [optimistic concurrency control](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/optimistic-concurrency-control.html) [#1803](https://github.com/ruflin/Elastica/pull/1803)
But, even if you can set these params on Action Object - they are ignored (on any version of the library, 7.1.0+).
Example of the source code, where exception should arise (because seqNo is incorrect), but doc changes are applied instead:
In 7.1.0
CHANGELOG.md
:* Added
if_seq_no/
if_primary_termto replace
versionfor [optimistic concurrency control](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/optimistic-concurrency-control.html) [#1803](https://github.com/ruflin/Elastica/pull/1803)
But, even if you can set these params on Action Object - they are ignored (on any version of the library, 7.1.0+). Example of the source code, where exception should arise (because seqNo is incorrect), but doc changes are applied instead:
Folowing quick fix in
ruflin/elastica/src/Bulk/Action/IndexDocument.php
solves the problem: