Loading TOC...

xdmp:forest

xdmp:forest(
   $name as xs:string
) as xs:unsignedLong

Summary

Returns the ID of the forest specified as the parameter. Throws XDMP-NOSUCHFOREST if no forest exists for the specified name.

Parameters
$name The name of the forest.

Example

xdmp:forest("myForest")
=> 15495681647217162987

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.
  • This generates an error if the forest is not attached to a database, e.g. "1.0-ml] XDMP-FORESTNID: xdmp:forest-databases(xs:unsignedLong("9623229762514846586")) -- Specified forest 9623229762514846586 not in database"