flexrep.pullSetDomainId( pull as element(flexrep.pull), domain-id as (Number|String) ) as element(flexrep.pull)
This function sets the domain ID for the specified pull configuration.
Parameters | |
---|---|
pull |
The pull replication configuration returned by the
flexrep.pullGet
function.
|
domain-id | The domain ID to set for the pull configuration. |
const flexrep = require('/MarkLogic/flexrep'); declareUpdate(); let pullConfig = flexrep.pullGet(13991089731050213376, true); let pullCfg = flexrep.pullSetDomainId(pullConfig, 2235475951259984368); flexrep.pullInsert(pullConfig); // Sets the domain ID for the pull configuration.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.