
admin:database-foreign-master-get-connect-forests-by-name( $foreign-master as element(db:foreign-master) ) as xs:boolean
This function returns the connect-forests-by-name setting from the master database configuration. This function must be executed on the replica cluster.
| Parameters | |
|---|---|
| foreign-master | The configuration element for the foreign master. |
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
let $cfg := admin:get-configuration()
let $fmaster := admin:database-get-foreign-master($cfg, xdmp:database("Documents"))
return admin:database-foreign-master-get-connect-forests-by-name($fmaster)
(: Returns the connect-forests-by-name setting from the foreign master database
configuration element. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.