Here are two editorial comments in regard to the ES Guide Update API pagehttp://www.elasticsearch.org/guide/reference/api/update.html:
-
Spelling correction for "The update API also support passing a
partial document (since 0.20), which will me merged into the …". Change
'me' to 'be'. -
Grammar correction for "Last, it also support upsert (since 0.20),
when if the document does not already exists. ...". Delete 'if' or 'when'.
Or, rephrase such as " ...
to insert the upsert element as a new document if the referenced
document id does not exist ..." -
In regard to the last update example for upserts: "upsert" : { "count"
: 1 }. Isn't 'count' supposed to be 'counter' to insert a new document with
the counter field if the document does not exist?
--