
admin.forestCreate( config as element(configuration), forest-name as String, host-id as (Number|String), data-directory as String?, [large-data-directory as String?], [fast-data-directory as String?] ) as element(configuration)
This function creates a new forest configuration.
http://marklogic.com/xdmp/privileges/admin/forest
const admin = require('/MarkLogic/admin.xqy');
admin.forestCreate(admin.getConfiguration(), "newForest", xdmp.host(), null)
=> returns the new configuration element -- use admin.saveConfiguration
to save the changes to the configuration or pass the configuration
to other Admin API functions to make other changes.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.