Skip to main content

SplitOperation

A single value split operation for the SplitTransformer.

Notesโ€‹

Defines a single value split operation for the SplitTransformer. Specifies source fields, the separator character or regex used to split values, and an optional target field for storing the resulting multiple values.

Usageโ€‹

fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
onSet: APPEND
separator: string
separatorRegex: false
toField: string

Propertiesโ€‹

PropertyTypeRequiredDefault
fieldMatcherTextMatcherNoTextMatcher
onSetenumNo-
separatorstringNo-
separatorRegexbooleanNofalse
toFieldstringNo-

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.

onSetโ€‹

Defines what to do when the target field already has one or more values. When unspecified, new values are appended to existing ones by default.

Allowed Valuesโ€‹

  • APPEND
  • PREPEND
  • REPLACE
  • OPTIONAL

separatorโ€‹

The delimiter each value is split on. Interpreted literally unless separatorRegex is true.

separatorRegexโ€‹

Whether separator is a regular expression rather than literal text. Default is false. Turn it on to split on a pattern โ€” \s*;\s* to tolerate spaces around a semicolon, for instance.

toFieldโ€‹

The target metadata field name where the extracted or computed value will be stored. If a field of the same name already exists, the behavior is controlled by onSet.