filecopy.exclude_pattern
File system data sources will exclude files which match this regular expression.
Key: filecopy.exclude_pattern
Type: String
Can be set in: collection.cfg
Description
This option allows a regular expression to be specified that will be used to exclude certain files from being copied. Any filename that matches the given regular expression will not be copied and indexed. This has many uses, for example, it could be used to prevent a certain subdirectory from being indexed.
Notes:
-
Only for file system data sources
-
The regular expression must match the entire name of the file. Note the .* at the end of the exclude pattern in the example below.
-
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_
orsmb://file-server/dir/file.txt