: Because the two requests are sent by different services and coordinating those : requests woud likely be difficult, I think the simplest change that would fix : the problem is to use optimistic concurrency, setting the field to 0 on the : "create" request so the request fails if the document already exists. And of
i think you're missunderstanding rules of _version_ and how '0' is handled. _version_=0 just means "ignore any verion rules, add/overwrite this doc no matter what" what you probably want it... * requests that expect to be creating a brand new doc: _version_=-1 "this doc must not already exist" * requests that expect to be updating an existing doc: _version_=1 "this doc must exist with any version" -Hoss http://www.lucidworks.com/