瀏覽代碼

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
Nik Everett 3 月之前
父節點
當前提交
5ebf9da6cc
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      docs/reference/esql/functions/like.asciidoc

+ 7 - 1
docs/reference/esql/functions/like.asciidoc

@@ -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,
+the expression will return true if any of the patterns match.
 
 The following wildcard characters are supported:
 
@@ -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]