Loading TOC...

MarkLogic 10 Product Documentation
dom:add-pipeline

dom:add-pipeline(
   $domain-name as xs:string,
   $pipeline-id as xs:unsignedLong
) as empty-sequence()

Summary

Add another pipeline to the set of pipelines bound to the domain. An error is raised if the domain cannot be found or the pipeline does not exist.

Parameters
domain-name The name of the domain to be changed.
pipeline-id The unique id of the pipeline.

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:add-pipeline( "Incoming", 
		  p:get("Entity Extraction")/p:pipeline-id )
  

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