admin:forest-set-partition-number( $config as element(configuration), $forest-id as xs:unsignedLong, $value as xs:unsignedInt? ) as element(configuration)
This function sets the partition number for the specified forest.
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $config := admin:get-configuration() let $forestid := admin:forest-get-id($config, "myForest") let $config := admin:forest-set-partition-number($config, $forestid, 2) return admin:save-configuration($config)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.