Skip to main content

TextCondition

Evaluates to true when document text content or field values match a configured expression.

Notesโ€‹

Evaluates to true when the text content of a document or matching metadata fields satisfies a configured value matcher. Supports matching against document content or specific field values with a configurable read size limit.

Usageโ€‹

class: TextCondition
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
label: string
maxReadSize: 0
sourceCharset: string
valueMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false

Propertiesโ€‹

PropertyTypeRequiredDefault
fieldMatcherTextMatcherNoTextMatcher
labelstringNo-
maxReadSizeintegerNo10000000
sourceCharsetstringNo-
valueMatcherTextMatcherNoTextMatcher

Property Detailsโ€‹

fieldMatcherโ€‹

Matches document fields based on specified patterns and methods. Use this to restrict the handler to operate only on fields whose names satisfy the matcher criteria.

labelโ€‹

An optional, user-supplied label for this step in the importer pipeline. It has no effect on processing โ€” it exists purely to help identify this step, for example in large configurations or in the visual configurator.

maxReadSizeโ€‹

The maximum number of characters to read from the document content at once. Use this to limit memory usage when processing large documents.

sourceCharsetโ€‹

Sets the character encoding of the source document to ensure proper reading and processing.

valueMatcherโ€‹

Matches document field values based on specified patterns and methods. Use this to restrict the handler to operate only on fields whose values satisfy the matcher criteria.