dom:add-pipeline( $domain-name as xs:string, $pipeline-id as xs:unsignedLong ) as empty-sequence()
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. |
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 )