Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions docs/reference/docs/update.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -333,23 +333,10 @@ Allows to control if and how the updated source should be returned in the respon
By default the updated source is not returned.
See <<request-body-search-source-filtering, Source filtering>> for details.


`version`::

The update API uses the Elasticsearch versioning support internally to make
sure the document doesn't change during the update. You can use the `version`
parameter to specify that the document should only be updated if its version
matches the one specified.
+
NOTE: Update only supports `internal` versioning. External version types
(`external` and `external_gte`) or forced versioning are not supported, as it
would result in Elasticsearch version numbers being out of sync with the
external system. Use the <<docs-index_,`index` API>> instead.

`if_seq_no` and `if_primary_term`::

Update operations can be made conditional and only performed if the last
modification to the document was assigned the sequence number and primary
term specified by the `if_seq_no` and `if_primary_term` parameters. If a
mismatch is detected, the operation results in a `VersionConflictException`
and a status code of 409. See <<optimistic-concurrency-control>> for more details.
and a status code of 409. See <<optimistic-concurrency-control>> for more details.