mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
26 lines
688 B
Text
26 lines
688 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.
|
|
|
|
include::./types/like.asciidoc[]
|
|
|
|
[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[]
|