flexrep:inbound-filter-create( $filter-module as xs:string, $filter-options as element(flexrep:filter-options)? ) as element(flexrep:inbound-filter)
This function creates an inbound filter element.
Parameters | |
---|---|
filter-module | The name of the filter module (e.g. "/my-filter.xqy"). |
filter-options |
Options to apply when invoking an outbound filter module.
Specify the options as an XML element named filter-options
in the "flexrep" namespace. The options element can contain any of the
options from
xdmp:invoke
. The option
child elements from xdmp:invoke must be in the "xdmp:eval" namespace.
|
xquery version "1.0-ml"; import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" at "/MarkLogic/flexrep.xqy"; flexrep:inbound-filter-insert( flexrep:inbound-filter-create( "/my-inbound-filter.xqy", <flexrep:filter-options xmlns="xdmp:eval"> <modules>{xdmp:database("my-modules-database")}</modules> <root>/some/directory/</root> </flexrep:filter-options>))
http://marklogic.com/xdmp/privileges/flexrep-admin
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.