WARNING: Version 6.1 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Trim Processor
editTrim Processor
editTrims whitespace from field.
This only works on leading and trailing whitespace.
Table 33. Trim Options
Name | Required | Default | Description |
---|---|---|---|
|
yes |
- |
The string-valued field to trim whitespace from |
|
no |
|
The field to assign the trimmed value to, by default |
|
no |
|
If |
{ "trim": { "field": "foo" } }