Hi Folks,

 

I'm looking at the definition of the function xdmp:forest-databases from the
MarkLogic 4.1 documentation (see below).  By its name, it seems to imply
that a forest can be connected to multiple databases, but according to the
summary, it returns the (single) ID of the database to which the forest
belongs.  Maybe I'm being a little too picky, but if there is a one-to-one
relationship I would expect it to be named xdmp:forest-database(), but at
the same time I want to be sure that a forest can indeed be associated with
only one database.

 

Thank you!

 

Tim Meagher

xdmp:forest-databases 


xdmp:forest-databases( 


 

$forest as xs:unsignedLong


)  as  xs:unsignedLong

Summary:

Returns the database ID corresponding to the database to which the specified
forest belongs. 

Parameters:

$forest: A forest ID. 

Example:

  xdmp:forest-databases(xdmp:forest("Documents"))

  => 2032458498523149048

 

_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to