Loading TOC...

MarkLogic 12 EA 1 Product Documentation
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.

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.