MarkLogic 9 Product Documentation
dom:set-pipelines

dom:set-pipelines(
   $domain-name as xs:string,
   $pipelines as xs:unsignedLong*
) as empty-sequence()

Summary

Bind a new set of pipelines to the domain. An error is raised if the domain cannot be found or any of the pipelines does not exist. If the domain already has pipelines associated with it, those existing pipelines will not be deleted; only the association will be broken.

Parameters
domain-name The name of the domain to be changed.
pipelines The unique ids of the pipelines.

Example

  xquery version "1.0-ml";
  import module namespace dom = "http://marklogic.com/cpf/domains" 
		  at "/MarkLogic/cpf/domains.xqy";
  import module namespace p = "http://marklogic.com/cpf/pipelines" 
		  at "/MarkLogic/cpf/pipelines.xqy";

  dom:set-pipelines( "Incoming", (
     p:get("Status Change Handling")/p:pipeline-id,
     p:get("Basic Conversion")/p:pipeline-id ) )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy