join.asciidoc 872 B

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