Skip to main content

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โ€‹

name: string
onSet: APPEND
values:
- string

Propertiesโ€‹

PropertyTypeRequiredDefault
namestringNo-
onSetenumNo-
valuesstring[]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โ€‹

  • APPEND
  • PREPEND
  • REPLACE
  • OPTIONAL

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.