CopyOperation
A single field copy operation specifying source fields and a target field.
Notes
Defines a single field copy operation for the CopyTransformer: specifies which source fields to match and the target field where their values are copied. The onSet property controls how values are stored when the target field already exists.
Usage
- YAML
- JSON
- XML
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
onSet: APPEND
toField: string
{
"fieldMatcher": {
"ignoreCase": false,
"ignoreDiacritic": false,
"matchEmpty": false,
"method": "BASIC",
"negateMatches": false,
"partial": false,
"pattern": "string",
"replaceAll": false,
"trim": false
},
"onSet": "APPEND",
"toField": "string"
}
<copyOperation>
<fieldMatcher>
<ignoreCase>false</ignoreCase>
<ignoreDiacritic>false</ignoreDiacritic>
<matchEmpty>false</matchEmpty>
<method>BASIC</method>
<negateMatches>false</negateMatches>
<partial>false</partial>
<pattern>string</pattern>
<replaceAll>false</replaceAll>
<trim>false</trim>
</fieldMatcher>
<onSet>APPEND</onSet>
<toField>string</toField>
</copyOperation>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
fieldMatcher | TextMatcher | No | - |
onSet | enum | No | - |
toField | string | No | - |
Property Details
fieldMatcher
Matches document fields based on specified patterns and methods
onSet
What to do if a target field of the same name already exist.
Allowed Values
APPENDPREPENDREPLACEOPTIONAL
toField
A target field name used to store the value.