Lowercase
Synopsis
Converts string values to lowercase.
Schema
lowercase:
- field: <ident>
- description: <text>
- if: <script>
- ignore_failure: <boolean>
- ignore_missing: <boolean>
- on_failure: <processor[]>
- on_success: <processor[]>
- tag: <string>
- target_field: <ident>
Configuration
Field | Required | Default | Description |
---|---|---|---|
field | Y | - | Source field containing strings to convert |
description | N | - | Documentation note |
if | N | - | Conditional expression |
ignore_failure | N | false | Skip processing errors |
ignore_missing | N | false | Skip if input field missing |
on_failure | N | - | Error handling processors |
on_success | N | - | Success handling processors |
tag | N | - | Identifier for logging |
target_field | N | field | Output field for converted strings |
Details
The processor can handle both single strings and arrays of strings, applying the transformation to all elements.
The processor is useful for standardizing text fields and tags or categories, prepare fields such as emails addresses for case-insensitive comparisons
The processor maintains the original field structure: single strings remain single strings, and arrays remain arrays.
Non-string values in the input field will cause processing errors unless ignore_failure
is set to true
.
Examples
Basic
Converting a single string... |
|
transforms the element: |
|
Arrays
Converting an array of strings... |
|
transforms all elements: |
|
Target Field
Storing the result in a new field... |
|
preserves the original: |
|
Conditionals
Using selection criteria... |
|
converts only values that meet the condition: |
|
Error Handling
Handling non-string values gracefully... |
|
continues the execution: |
|