Loading TOC...

MarkLogic 10 Product Documentation
admin:forest-set-partition-number

admin:forest-set-partition-number(
   $config as element(configuration),
   $forest-id as xs:unsignedLong,
   $value as xs:unsignedInt?
) 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



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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.