ES|QL TO_TEXT function

Converts a value to text.

Embedded
field
Input value. The input can be a single- or multi-valued column or an expression.
options

(Optional) Additional options as function named parameters.

Converts an input value into text.

field options result
keyword text
text text
analyzer

(keyword) The analyzer applied to the values of the resulting text column, playing the role the mapping's analyzer plays for an indexed text field. Defaults to standard. Must name a registered (prebuilt or plugin-provided) analyzer, and is only accepted on expressions that are not backed by an index-mapped field.

ROW a = ["this", "is", "a", "text"]
| EVAL text_a = TO_TEXT(a)
		
a:keyword text_a:text
[this, is, a, text] [this, is, a, text]