WARNING: Version 5.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 31. Trim Options
Name | Required | Default | Description |
---|---|---|---|
|
yes |
- |
The string-valued field to trim whitespace from |
|
no |
|
If |
{ "trim": { "field": "foo" } }