admin.databaseGetRangePolicyPartitionKey( range-policy as element(db.assignmentPolicy) ) as cts.reference
This function returns the range policy partition key set for the database.
Parameters | |
---|---|
range-policy |
The range assignment policy returned from the admin:database-get-assignment-policy function.
|
http://marklogic.com/xdmp/privileges/admin/database
http://marklogic.com/xdmp/privileges/admin/database/{id}
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() var dbid = admin.databaseGetId(config, "myDatabase") var policy = admin.databaseGetAssignmentPolicy(config, dbid) admin.databaseGetRangePolicyPartitionKey(policy)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.