mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 09:54:06 -04:00
This compresses the results and the query on the page to take up less space and make them more obviously connected.
25 lines
584 B
Text
25 lines
584 B
Text
[[esql-to_string]]
|
|
=== `TO_STRING`
|
|
Converts a field into a string. For example:
|
|
|
|
[source.merge.styled,esql]
|
|
----
|
|
include::{esql-specs}/string.csv-spec[tag=to_string]
|
|
----
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|===
|
|
include::{esql-specs}/string.csv-spec[tag=to_string-result]
|
|
|===
|
|
|
|
It also works fine on multivalued fields:
|
|
|
|
[source.merge.styled,esql]
|
|
----
|
|
include::{esql-specs}/string.csv-spec[tag=to_string_multivalue]
|
|
----
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|===
|
|
include::{esql-specs}/string.csv-spec[tag=to_string_multivalue-result]
|
|
|===
|
|
|
|
Alias: TO_STR
|