Skip to content

Commit 3399f69

Browse files
committed
[DOCS] made it clearer that the _version is incremented by all write operations (deletes included)
1 parent 85ca6c6 commit 3399f69

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/reference/docs/delete.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ The result of the above delete operation is:
3131
Each document indexed is versioned. When deleting a document, the
3232
`version` can be specified to make sure the relevant document we are
3333
trying to delete is actually being deleted and it has not changed in the
34-
meantime.
34+
meantime. Every write operation executed on a document, deletes included,
35+
causes its version to be incremented.
3536

3637
[float]
3738
[[delete-routing]]

docs/reference/docs/index_.asciidoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ near real time aspects of search operations. If no version is provided,
106106
then the operation is executed without any version checks.
107107

108108
By default, internal versioning is used that starts at 1 and increments
109-
with each update. Optionally, the version number can be supplemented
110-
with an external value (for example, if maintained in a database). To
111-
enable this functionality, `version_type` should be set to `external`.
112-
The value provided must be a numeric, long value greater than 0, and
113-
less than around 9.2e+18. When using the external version type, instead
109+
with each update, deletes included. Optionally, the version number can be
110+
supplemented with an external value (for example, if maintained in a
111+
database). To enable this functionality, `version_type` should be set to
112+
`external`. The value provided must be a numeric, long value greater than 0,
113+
and less than around 9.2e+18. When using the external version type, instead
114114
of checking for a matching version number, the system checks to see if
115115
the version number passed to the index request is greater than the
116116
version of the currently stored document. If true, the document will be

0 commit comments

Comments
 (0)