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.