Built-in filters - Filter all documents as CSV (ForceCSVMime)

The ForceCSVMime filter forces all documents that are processed by the filter framework to present a text/csv MIME type. This is useful for collections that use the CSVToXML filter where the data source only includes content from a single CSV file or set of CSV files and the web server that hosts the CSV file is not returning the correct MIME type.

This filter should only be used if all the files being processed are CSV files. Use with other file types may result in unexpected behavior or filter errors.

Enabling

To enable the filter add ForceCSVMime to the filter chain.

The ForceCSVMime filter must appear in the filter chain before other filters that rely on the text/csv MIME type.

Example

To force the gatherer to treat all documents as CSV and convert all entries to XML:

filter.classes=<default_filter_chain>:ForceCSVMime:CSVToXML