elasticsearch/docs/reference/esql/functions/to_version.asciidoc

25 lines
546 B
Plaintext

[discrete]
[[esql-to_version]]
=== `TO_VERSION`
[.text-center]
image::esql/functions/signature/to_version.svg[Embedded,opts=inline]
Converts an input string to a version value. For example:
[source.merge.styled,esql]
----
include::{esql-specs}/version.csv-spec[tag=to_version]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/version.csv-spec[tag=to_version-result]
|===
The input can be a single- or multi-valued field or an expression.
Alias: TO_VER
Supported types:
include::types/to_version.asciidoc[]