You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we use the same version checking logic for get and indexing requests. The leads to the wrong semantics for the EXTERNAL and the EXTERNAL_TYPE versioning systems. For example, doing GET index/type/1?version=10&version_type=external will return the document if it has a version of 9 or less.
We should make it return documents only if their version match the specified version.
The text was updated successfully, but these errors were encountered:
…n read operation & disallow them in the Update API
Separate version check logic for reads and writes for all version types, which allows different behavior in these cases.
Change `VersionType.EXTERNAL` & `VersionType.EXTERNAL_GTE` to behave the same as `VersionType.INTERNAL` for read operations.
The previous behavior was fit for writes but is useless in reads.
This commit also makes the usage of `EXTERNAL` & `EXTERNAL_GTE` in the update api raise a validation error as it make cause data to
be lost.
Closeselastic#5663 , closeselastic#5661
…n read operation & disallow them in the Update API
Separate version check logic for reads and writes for all version types, which allows different behavior in these cases.
Change `VersionType.EXTERNAL` & `VersionType.EXTERNAL_GTE` to behave the same as `VersionType.INTERNAL` for read operations.
The previous behavior was fit for writes but is useless in reads.
This commit also makes the usage of `EXTERNAL` & `EXTERNAL_GTE` in the update api raise a validation error as it make cause data to
be lost.
Closes#5663 , Closes#5661, Closes#5929
Currently we use the same version checking logic for get and indexing requests. The leads to the wrong semantics for the
EXTERNAL
and theEXTERNAL_TYPE
versioning systems. For example, doingGET index/type/1?version=10&version_type=external
will return the document if it has a version of 9 or less.We should make it return documents only if their version match the specified version.
The text was updated successfully, but these errors were encountered: