Skip to content

Commit

Permalink
[DOCS] Add document update API link to concurrency control docs (#56481)
Browse files Browse the repository at this point in the history
Co-authored-by: James Rodewig <[email protected]>
  • Loading branch information
cawoodm and jrodewig committed May 11, 2020
1 parent fc708cc commit 902a41e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/docs/concurrency-control.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ for each search hit by setting <<request-body-search-seq-no-primary-term,`seq_no
The sequence number and the primary term uniquely identify a change. By noting down
the sequence number and primary term returned, you can make sure to only change the
document if no other change was made to it since you retrieved it. This
is done by setting the `if_seq_no` and `if_primary_term` parameters of either the
<<docs-index_,Index API>> or the <<docs-delete,Delete API>>.
is done by setting the `if_seq_no` and `if_primary_term` parameters of the
<<docs-index_,index API>>, <<docs-update,update API>>, or <<docs-delete,delete
API>>.

For example, the following indexing call will make sure to add a tag to the
document without losing any potential change to the description or an addition
Expand All @@ -106,4 +107,3 @@ PUT products/_doc/1567?if_seq_no=362&if_primary_term=2
--------------------------------------------------
// TEST[continued]
// TEST[catch: conflict]

0 comments on commit 902a41e

Please sign in to comment.