Loading TOC...

MarkLogic 12 EA 1 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');
const config = admin.getConfiguration()
const forestid = admin.forestGetId(config, "myForest")
const config = admin.forestSetPartitionNumber(config, forestid, 2)
admin.saveConfiguration(config)

    

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