info:policy-set( [$policy-name as xs:string?], [$policy as element(info:options)?] ) as empty-sequence()
[DEPRECATED] This function sets an ingestion policy, which consists of a reusable <options> node defining parameters for content loading and transformation.
xquery version "1.0-ml"; import module namespace info = "http://marklogic.com/appservices/infostudio" at "/MarkLogic/appservices/infostudio/info.xqy"; info:policy-set( "default", <options name="default" xmlns="http://marklogic.com/appservices/infostudio"> <collection>http://marklogic.com/appservices/infostudio</collection> <error-handling>continue-with-warning</error-handling> <fab-retention-duration>P30D</fab-retention-duration> <file-filter>^[^\.]</file-filter> <max-docs-per-transaction>100</max-docs-per-transaction> <overwrite>overwrite</overwrite> <ticket-retention-duration>P30D</ticket-retention-duration> <uri> <literal>http://docs/mydocs</literal> <filename/> <literal>.</literal> <ext/> </uri> </options>) (: Defines and sets a default polcy to load all documents with the uri of http://docs/mydocs. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.