xdmp.documentPartitionAssign

xdmp.documentPartitionAssign(
   root as Node,
   [partition-queries as Object]
) as Number?

Summary

Assign a document to a partition number, using the partition queries in the database or in the second argument. The return value is the partition number where the document should be inserted.

Parameters
root The document to assign.
partition-queries A map of partition-number to cts query.
Powered by MarkLogic Server | Terms of Use | Privacy Policy