MarkLogic 9 Product Documentation
admin.forestSetPartitionNumber

admin.forestSetPartitionNumber(
   config as element(configuration),
   forest-id as (Number|String),
   value as Number?
) as element(configuration)

Summary

This function sets the partition number for the specified forest.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
forest-id The ID of the forest for which to set the partition number.
value The partition number to set for the forest.

Example

const admin = require('/MarkLogic/admin.xqy');
var config = admin.getConfiguration()
var forestid = admin.forestGetId(config, "myForest")
var config = admin.forestSetPartitionNumber(config, forestid, 2)
admin.saveConfiguration(config)

    
Powered by MarkLogic Server | Terms of Use | Privacy Policy