trim.asciidoc 893 B

1234567891011121314151617181920212223242526
  1. [[trim-processor]]
  2. === Trim Processor
  3. Trims whitespace from field. If the field is an array of strings, all members of the array will be trimmed.
  4. NOTE: This only works on leading and trailing whitespace.
  5. [[trim-options]]
  6. .Trim Options
  7. [options="header"]
  8. |======
  9. | Name | Required | Default | Description
  10. | `field` | yes | - | The string-valued field to trim whitespace from
  11. | `target_field` | no | `field` | The field to assign the trimmed value to, by default `field` is updated in-place
  12. | `ignore_missing` | no | `false` | If `true` and `field` does not exist, the processor quietly exits without modifying the document
  13. include::common-options.asciidoc[]
  14. |======
  15. [source,js]
  16. --------------------------------------------------
  17. {
  18. "trim": {
  19. "field": "foo"
  20. }
  21. }
  22. --------------------------------------------------
  23. // NOTCONSOLE