|
@@ -307,22 +307,20 @@ By default the updated source is not returned.
|
|
|
See <<search-request-source-filtering, `source filtering`>> for details.
|
|
|
|
|
|
|
|
|
-`version` & `version_type`::
|
|
|
+`version`::
|
|
|
|
|
|
The update API uses the Elasticsearch's 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. By setting version type to `force` you can force
|
|
|
-the new version of the document after update (use with care! with `force`
|
|
|
-there is no guarantee the document didn't change).
|
|
|
+matches the one specified.
|
|
|
|
|
|
[NOTE]
|
|
|
-.The update API does not support external versioning
|
|
|
+.The update API does not support versioning other than internal
|
|
|
=====================================================
|
|
|
|
|
|
-External versioning (version types `external` & `external_gte`) is not
|
|
|
-supported by the update API as it would result in Elasticsearch version
|
|
|
-numbers being out of sync with the external system. Use the
|
|
|
+External (version types `external` & `external_gte`) or forced (version type `force`)
|
|
|
+versioning is not supported by the update API as it would result in Elasticsearch
|
|
|
+version numbers being out of sync with the external system. Use the
|
|
|
<<docs-index_,`index` API>> instead.
|
|
|
|
|
|
=====================================================
|