join.asciidoc 817 B

1234567891011121314151617181920212223242526
  1. [[join-processor]]
  2. === Join Processor
  3. Joins each element of an array into a single string using a separator character between each element.
  4. Throws an error when the field is not an array.
  5. [[join-options]]
  6. .Join Options
  7. [options="header"]
  8. |======
  9. | Name | Required | Default | Description
  10. | `field` | yes | - | The field to be separated
  11. | `separator` | yes | - | The separator character
  12. | `target_field` | no | `field` | The field to assign the joined value to, by default `field` is updated in-place
  13. include::common-options.asciidoc[]
  14. |======
  15. [source,js]
  16. --------------------------------------------------
  17. {
  18. "join": {
  19. "field": "joined_array_field",
  20. "separator": "-"
  21. }
  22. }
  23. --------------------------------------------------
  24. // NOTCONSOLE