admin.forestSetPartitionNumber( config as element(configuration), forest-id as (Number|String), value as Number? ) as element(configuration)
This function sets the partition number for the specified forest.
const admin = require('/MarkLogic/admin.xqy'); const config = admin.getConfiguration() const forestid = admin.forestGetId(config, "myForest") const config = admin.forestSetPartitionNumber(config, forestid, 2) admin.saveConfiguration(config)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.