Skip to main content

MergeOperation

A single merge operation combining matching source fields into a target field.

Notesโ€‹

Defines a single merge operation for the MergeTransformer. Specifies the source fields to merge (by field matcher), the target field, and whether to combine all values into a single string with an optional separator. Optionally deletes the source fields after merging.

Usageโ€‹

deleteFromFields: false
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
singleValue: false
singleValueSeparator: string
toField: string

Propertiesโ€‹

PropertyTypeRequiredDefault
deleteFromFieldsbooleanNofalse
fieldMatcherTextMatcherNoTextMatcher
singleValuebooleanNofalse
singleValueSeparatorstringNo-
toFieldstringNo-

Property Detailsโ€‹

deleteFromFieldsโ€‹

Whether the source fields are removed once merged. Default is false. When toField is itself one of the source fields it is kept regardless, holding the merged result.

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.

singleValueโ€‹

Whether the merged values are joined into one value rather than kept as a multi-valued field. Default is false.

singleValueSeparatorโ€‹

Text placed between values when singleValue is true โ€” a comma, a space, a pipe. Without it the values are concatenated with nothing between them.

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.