Update update.asciidoc

The upserts section should be on the same page as updates.
This commit is contained in:
Clinton Gormley 2014-09-12 07:45:31 +02:00
parent a3f2677b70
commit ab250164f0

View File

@ -126,6 +126,8 @@ curl -XPOST 'localhost:9200/test/type1/1/_update' -d '{
If `name` was `new_name` before the request was sent then the entire update
request is ignored.
[[upserts]]
[float]
=== Upserts
There is also support for `upsert`. If the document does
not already exists, the content of the `upsert` element will be used to
@ -190,6 +192,7 @@ curl -XPOST 'localhost:9200/test/type1/1/_update' -d '{
--------------------------------------------------
[float]
=== Parameters
The update operation supports similar parameters as the index API,