Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp.forestRestart

xdmp.forestRestart(
   forestIDs as (Number|String)[]
) as null

Summary

Restarts a forest. If multiple forest IDs are specified, the restarts occur in parallel.

Parameters
forestIDs A forest ID.

Required Privileges

This operation requires at least one of the following privileges:

http://marklogic.com/xdmp/privileges/xdmp-forest-restart

http://marklogic.com/xdmp/privileges/xdmp-forest-restart/forest/{id}

http://marklogic.com/xdmp/privileges/xdmp-forest-restart/database/{id}

Example

xdmp.forestRestart([11183608861595735720,29382837261839278]);

Example

xdmp.forestRestart(xdmp.databaseForests(xdmp.database("My-Database")));
=> Restarts all of the forests in the database named My-Database

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