elasticsearch/docs/reference/esql/functions/like.asciidoc
Abdon Pijpelink bc59315baa
[DOCS] Examples for ES|QL DISSECT and WHERE (#102591)
* DISSECT examples

* WHERE examples

* Remove references to empty keys

* Fix non-deterministic test
2023-11-27 10:56:48 +01:00

24 lines
No EOL
653 B
Text

[discrete]
[[esql-like-operator]]
=== `LIKE`
// tag::body[]
Use `LIKE` to filter data based on string patterns using wildcards. `LIKE`
usually acts on a field placed on the left-hand side of the operator, but it can
also act on a constant (literal) expression. The right-hand side of the operator
represents the pattern.
The following wildcard characters are supported:
* `*` matches zero or more characters.
* `?` matches one character.
[source.merge.styled,esql]
----
include::{esql-specs}/docs.csv-spec[tag=like]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/docs.csv-spec[tag=like-result]
|===
// end::body[]