On 9/17/2015 10:14 AM, Shawn Heisey wrote: > This assumes that the uniqueKey field is "id". Unless your uniqueKey > field is "author_s" (which is highly unlikely), the JSON that you used > will not work. Chances are that the request failed, that nothing happened.
On my first reading, I did not catch that you said it added a new document with the fields you specified, so my assumption that the request failed was clearly wrong. I think this must mean that you have disabled (removed) the uniqueKey setting in your schema -- adding a document that does not have the uniqueKey field will fail. I'm reasonably certain that you cannot do atomic updates if you do not have a uniqueKey. I have just checked our documentation for Atomic Updates ... and the uniqueKey requirement is NOT mentioned. I think that's a documentation bug. Thanks, Shawn