Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.databaseForeignMasterGetConnectForestsByName

admin.databaseForeignMasterGetConnectForestsByName(
   foreign-master as element(db.foreignMaster)
) as Boolean

Summary

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.

Example


  let admin = require("/MarkLogic/admin.xqy")
  let cfg = admin.getConfiguration()
  let fmaster = admin.databaseGetForeignMaster(cfg, xdmp.database("Documents"))
  admin.databaseForeignMasterGetConnectForestsByName(fmaster)
    

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