I am using the "external" version-type for all my documents (they come from
another primary database and I want to keep the versions between them
consistent).
Am I right in assuming that this basically means that I can't use the
_update API (with a script or partial documents), because it always seems
to increase the version internally (making the document version go out of
sync with the version in the primary database)? And I don't see a way of
specifying a version or version type for update requests (at least in the
Java API).
It's not critical (i can always do a reindex from the primary DB instead),
but I thought being able to use the update API could potentially save some
network roundtrips / performance. But thinking about it I see that getting
the semantics right in that case (should the update just fail if the
provided external version does not match? etc.) is probably difficult.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.