Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/reference/esql/functions/like.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
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.
represents the pattern. or a list of patterns. If a list of patterns is provided,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: We can either remove the full stop after patten or change it to comma

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops. got it.

the expression will return true if any of the patterns match.

The following wildcard characters are supported:

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

[source.merge.styled,esql]
----
include::{esql-specs}/where-like.csv-spec[tag=likeListDocExample]
----

To reduce the overhead of escaping, we suggest using triple quotes strings `"""`

[source.merge.styled,esql]
Expand Down