mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 09:54:06 -04:00
This moves the results in the esql examples from preformatted text to an actual html table. We can further format it from there.
17 lines
403 B
Text
17 lines
403 B
Text
[[esql-split]]
|
|
=== `SPLIT`
|
|
Split a single valued string into multiple strings. For example:
|
|
|
|
[source,esql]
|
|
----
|
|
include::{esql-specs}/string.csv-spec[tag=split]
|
|
----
|
|
|
|
Which splits `"foo;bar;baz;qux;quux;corge"` on `;` and returns an array:
|
|
|
|
[%header,format=dsv,separator=|]
|
|
|===
|
|
include::{esql-specs}/string.csv-spec[tag=split-result]
|
|
|===
|
|
|
|
WARNING: Only single byte delimiters are currently supported.
|