MarkLogic 9 Product Documentation
p:insert

p:insert(
   $pipeline-node as node()
) as xs:unsignedLong

Summary

Insert a fully constructed content processing pipeline, returning its unique ID. If a pipeline with the same name already exists in the database, it is replaced.

Parameters
pipeline-node The pipeline definition. Any pipeline-id element will be ignored.

Example

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

  p:insert( xdmp:get("/pipelines/myapp.xml")/* )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy