Skip to main content

GenericMetadataFilter

Filter by one or more matching metadata field values.

Notesโ€‹

Filters documents based on metadata field names and values using configurable text matchers. Documents are included or excluded depending on whether a specified field matches the given value pattern.

Examplesโ€‹

The following example filters out Zip documents base on a "Content-Type" metadata field.

class: GenericMetadataFilter
onMatch: EXCLUDE
fieldMatcher:
pattern: Content-Type
valueMatcher:
pattern: application/zip

Usageโ€‹

Full configuration skeleton, with every option and its default
class: GenericMetadataFilter
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
onMatch: INCLUDE
valueMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false

Propertiesโ€‹

PropertyTypeRequiredDefault
fieldMatcherTextMatcherNoTextMatcher
onMatchenumNoINCLUDE
valueMatcherTextMatcherNoTextMatcher

Property Detailsโ€‹

fieldMatcherโ€‹

Use the following fields to dictate how field names should be matched by this filter.

onMatchโ€‹

What to do with a matching metadata field value.

Allowed Valuesโ€‹

  • INCLUDE
  • EXCLUDE

valueMatcherโ€‹

Use the following fields to dictate how field values should be matched by this filter.