xdmp.documentPartitionAssign( root as Node, [partition-queries as Object] ) as Number?
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.