Select
Synopsis
An array processing processor that extracts a specific element from arrays by position, supporting both positive and negative indexing for flexible element selection from various array types including strings, integers, floats, and booleans.
Schema
- select:
field: <ident>
position: <string>
target_field: <ident>
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
| Field | Required | Default | Description |
|---|---|---|---|
field | Y | - | Field containing the array to process |
position | Y | - | Position of element to select (0-based index) |
target_field | Y | - | Field to store the selected element |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue if selection fails |
ignore_missing | N | false | Continue if source field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |