filecopy.include_pattern

Background

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.

Notes:

  • 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

Setting the key

Set this configuration key in the search package or data source configuration.

Use the configuration key editor to add or edit the filecopy.include_pattern key, and set the value. This can be set to any valid String value.

Default value

Include everything by default

filecopy.include_pattern=

Examples

Include everything from the '2007' subdirectory:

filecopy.include_pattern=file:///myfilecopysource/2007/.*