admin.databaseForeignMasterGetConnectForestsByName( foreign-master as element(db.foreignMaster) ) as 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. |
let admin = require("/MarkLogic/admin.xqy") let cfg = admin.getConfiguration() let fmaster = admin.databaseGetForeignMaster(cfg, xdmp.database("Documents")) admin.databaseForeignMasterGetConnectForestsByName(fmaster)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.