If specified, file system data sources will only include files which match this regular expression.

Key: filecopy.include_pattern
Type: String
Can be set in: collection.cfg


This option allows a regular expression to be specified that will be used to include certain files in your index. When this option is specified, only those files whose name matches the regular expression will be copied and indexed. All other files will be excluded. When this option is not specified, all files are included.


  • Only for file system data source

  • The regular expression must match the entire name of the file. Note in the example the .* at the end of the include pattern

  • The regular expression must match the internal name that is used in copying. This will not be a standard windows, UNC or unix path. It will either be a 'file' or 'smb' URL. e.g. file:///c:/documents/file.txt or smb://file-server/dir/file.txt

Default Value

Include everything by default



Include everything from the '2007' subdirectory: