filecopy.discard_filtering_errors

Background

This parameter controls whether files that have failed to filter should be indexed as empty files or not.

Filtering binary files could fail for various reason (For example if the file type is not supported by the filtering component). Usually these files are then ignored during indexing because there is no text content to index.

However, it’s sometime desirable to have at least the file name of the file appear in the index, even if there is no content.

By disabling this setting, an empty file will be generated when a file fails to filter. This empty file will be then indexed and shown in the results.

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.discard_filtering_errors key, and set the value. This can be set to any valid Boolean value.

Default value

filecopy.discard_filtering_errors=true

Examples

To index the file names of the files that failed to filter:

filecopy.discard_filtering_errors=false