Skip to content

Commit 5ebf9da

Browse files
authored
ESQL: Backport docs for LIKE list (#130011)
* ESQL: Backport docs for LIKE list Backports the docs for the LIKE list syntax we added a few days ago. In `main` the docs are generated from an annotation, just like functions. But in 8.19 we hadn't done that. So we have to add these by hand. * Fix spelling
1 parent 063ead3 commit 5ebf9da

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/reference/esql/functions/like.asciidoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
Use `LIKE` to filter data based on string patterns using wildcards. `LIKE`
77
usually acts on a field placed on the left-hand side of the operator, but it can
88
also act on a constant (literal) expression. The right-hand side of the operator
9-
represents the pattern.
9+
represents the pattern or a list of patterns. If a list of patterns is provided,
10+
the expression will return true if any of the patterns match.
1011

1112
The following wildcard characters are supported:
1213

@@ -33,6 +34,11 @@ it will require further escaping.
3334
include::{esql-specs}/string.csv-spec[tag=likeEscapingSingleQuotes]
3435
----
3536

37+
[source.merge.styled,esql]
38+
----
39+
include::{esql-specs}/where-like.csv-spec[tag=likeListDocExample]
40+
----
41+
3642
To reduce the overhead of escaping, we suggest using triple quotes strings `"""`
3743

3844
[source.merge.styled,esql]

0 commit comments

Comments
 (0)