Parameters
The following parameters are in the computed field’s global Method parameter:Examples
The following example shows splitting a field’s output to extract a first and last name. ConfigJSON
Output
JSON
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
| key | value | description |
|---|---|---|
| id (required) | split | |
| source_id (required) | a field id in the current config | The id of the field to split into substrings. |
| separator (required) | string | The separator to use in the split. |
| index | integer | The zero-based index of the substring to return after the split. If unspecified, returns all the split substrings as an array. |
{
"fields": [
{
"id": "_driver_name_raw",
"anchor": "name of driver",
"method": {
"id": "label",
"position": "below"
}
}
],
"computed_fields": [
{
"id": "driver_name_last",
"method": {
"id": "split",
"source_id": "_driver_name_raw",
"separator": " ",
"index": 1
}
},
{
"id": "driver_name_first",
"method": {
"id": "split",
"source_id": "_driver_name_raw",
"separator": " ",
"index": 0
}
}
],
}
| Example document | Download link |
|---|
{
"_driver_name_raw": {
"type": "string",
"value": "Petar Petrov"
},
"driver_name_last": {
"value": "Petrov",
"type": "string"
},
"driver_name_first": {
"value": "Petar",
"type": "string"
}
}
`
