trim.asciidoc 936 B

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