MarkLogic 9 Product Documentation
xdmp:database-forests

xdmp:database-forests(
   $database-id as xs:unsignedLong,
   [$include-replicas as xs:boolean]
) as xs:unsignedLong*

Summary

Returns a sequence of forest IDs in the specified database.

Parameters
database-id A database ID.
include-replicas True if replica forest ids should also be included.

Example

xdmp:database-forests(xdmp:database("Documents"))
=> (8456374036761185098, 10615125154705099114)
Powered by MarkLogic Server | Terms of Use | Privacy Policy