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.