Skip to content

Commit f901767

Browse files
committed
[DOCS] made it clearer that the _version is incremented by all write operations (deletes included)
1 parent 8e8ea65 commit f901767

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
@@ -98,11 +98,11 @@ near real time aspects of search operations. If no version is provided,
9898
then the operation is executed without any version checks.
9999

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

0 commit comments

Comments
 (0)