Constant
A name-value constant entry added to documents by ConstantTransformer.
Notes
Defines a single constant name-value entry for the ConstantTransformer. Multiple values can be assigned to the same constant name by repeating the constant entry.
Usage
- YAML
- JSON
- XML
name: string
onSet: APPEND
values:
- string
{
"name": "string",
"onSet": "APPEND",
"values": [
"string"
]
}
<constant>
<name>string</name>
<onSet>APPEND</onSet>
<values>
<value>string</value>
</values>
</constant>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
name | string | No | - |
onSet | enum | No | - |
values | string[] | No | - |
Property Details
name
Name of the field the constant values are written to.
onSet
What to do if a target field of the same name already exist.
Allowed Values
APPENDPREPENDREPLACEOPTIONAL
values
One or more values to assign to the field. Several values make it multi-valued; how they combine with any existing value is governed by onSet.