Loading TOC...

MarkLogic 9 Product Documentation
infodev:file-filter

infodev:file-filter(
   $policy-name as xs:string?,
   $policy-deltas as element(info:options)*
) as xs:string

Summary

[DEPRECATED] This function returns a string representing a matching pattern to be applied to file paths on ingest.

Parameters
policy-name The name of a stored ingestion policy.
policy-deltas Zero or more options nodes that contain a file-filter element. The specified file filter can be any valid XQuery regular expression.

Example

  xquery version "1.0-ml"; 

  import module namespace infodev = "http://marklogic.com/appservices/infostudio/dev"
      at "/MarkLogic/appservices/infostudio/infodev.xqy";

  let $options := 
      <options xmlns="http://marklogic.com/appservices/infostudio">
          <file-filter>^[^\.xml]</file-filter>
      </options> 

  return 
     infodev:file-filter("default", $options)

  =>

  ^[^\.xml] 
    

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