Setting Document Filter parameters

The Document Filter parameters are loaded through the DocumentFilters.xml configuration file.

The default filters in the configuration file are:

Each filter specifies which class is loaded for the filter. In addition, during the installation of Sybase Search Content Adapter, DocumentFilters.xml adds these two filters:

See “Setting Document Filter parameters for Content Adapter”.

Table 3-14: Document Filter parameters

Parameter

Default

Description

DocumentFilter class

None

The Java class that defines the filter.

Timeout millis

45,000

Indicates the time, in milliseconds, the filter waits while filtering a document. If the filter exceeds the given time, the filter aborts.

TempFiles keep

false

If set to true, the filter keeps any temporary files produced during the filtering process.

FallbackCharset

None

Indicates the character set decoding scheme to use for decoding the text bytes when the encoding is not supplied and cannot be determined.

NoteDocument filters that implement the com.omniq.flt.TextDocumentFilter interface can use this parameter.

DocumentFilters.xml specifies the MIME type association with each filter within the MimeMapping tag.

Table 3-15: MimeMapping parameters

Parameter

Default

Value

MimeType

None

Specifies the MIME type associated with the filter.

DocumentFilterName

None

Specifies the name of the filter that maps to the MIME type.