Loading TOC...

MarkLogic 10 Product Documentation
xdmp:forest-restart

xdmp:forest-restart(
   $forestIDs as xs:unsignedLong*
) as empty-sequence()

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:forest-restart((11183608861595735720,29382837261839278))

Example

xdmp:forest-restart(xdmp:database-forests(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.