MarkLogic 9 Product Documentation
flexrep:configuration-target-set-user-id

flexrep:configuration-target-set-user-id(
   $cfg as element(flexrep:configuration),
   $target-id as xs:unsignedLong,
   $user-id as xs:unsignedLong?
) as element(flexrep:configuration)

Summary

Set a target's user-id. This is only used for query-based targets, and is only meaningful if the FlexRep configuration also has an alerting URI associated with it. When both of these are true, documents are replicated to the target only if either the document or its properties match one of the user's alerting rules in the alerting configuration.

Parameters
cfg The replication configuration.
target-id The target ID.
user-id The user ID, or an empty sequence if this is not a query-based target.

Example


xquery version "1.0-ml"; 
 
import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" 
      at "/MarkLogic/flexrep.xqy";

flexrep:configuration-insert(
  flexrep:configuration-target-set-user-id(
    $cfg, $target-id, $user-id))
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy