Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp:document-forest

xdmp:document-forest(
   $uri as xs:string,
   [$forest-ids as xs:unsignedLong*]
) as xs:unsignedLong?

Summary

Returns the forest ID of the forest in which a document (or a lock or a property) with the specified URI is stored. Otherwise, returns the empty sequence.

Parameters
uri The URI of the document, lock, or property.
forest-ids Restricts the ID(s) of the forest(s) in which this function may return.

Example

xdmp:document-forest("example.xml")
=> 12972338785465832200

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