Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.forestForeignReplicaGetForestId

admin.forestForeignReplicaGetForestId(
   foreign-replica as element(as.foreignReplica)
) as (Number|String)

Summary

This function returns the id of the replica forest from the specified replica forest configuration element. This function must be executed on the master cluster.

Parameters
foreign-replica The element returned by the admin:forest-foreign-replica or admin:forest-get-foreign-replicas function that specifies the configuration for the replica forest.

Example


  let admin = require("/MarkLogic/admin.xqy")
  let cfg = admin.getConfiguration()
  let fmforest = admin.forestGetForeignReplicas(cfg, xdmp.forest("Documents"))
  admin.forestForeignReplicaGetForestId(fn.head(fmforest))
    

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