Skip to content

Commit 4db5063

Browse files
authored
ES|QL capitalize commands in doc examples for match and qstr (#116399)
1 parent 6c959b7 commit 4db5063

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/match-function.csv-spec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ matchWithField
66
required_capability: match_function
77

88
// tag::match-with-field[]
9-
from books
10-
| where match(author, "Faulkner")
11-
| keep book_no, author
12-
| sort book_no
13-
| limit 5;
9+
FROM books
10+
| WHERE MATCH(author, "Faulkner")
11+
| KEEP book_no, author
12+
| SORT book_no
13+
| LIMIT 5;
1414
// end::match-with-field[]
1515

1616
// tag::match-with-field-result[]

x-pack/plugin/esql/qa/testFixtures/src/main/resources/match-operator.csv-spec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ matchWithField
66
required_capability: match_operator_colon
77

88
// tag::match-with-field[]
9-
from books
10-
| where author:"Faulkner"
11-
| keep book_no, author
12-
| sort book_no
13-
| limit 5;
9+
FROM books
10+
| WHERE author:"Faulkner"
11+
| KEEP book_no, author
12+
| SORT book_no
13+
| LIMIT 5;
1414
// end::match-with-field[]
1515

1616
// tag::match-with-field-result[]

x-pack/plugin/esql/qa/testFixtures/src/main/resources/qstr-function.csv-spec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ qstrWithField
66
required_capability: qstr_function
77

88
// tag::qstr-with-field[]
9-
from books
10-
| where qstr("author: Faulkner")
11-
| keep book_no, author
12-
| sort book_no
13-
| limit 5;
9+
FROM books
10+
| WHERE QSTR("author: Faulkner")
11+
| KEEP book_no, author
12+
| SORT book_no
13+
| LIMIT 5;
1414
// end::qstr-with-field[]
1515

1616
// tag::qstr-with-field-result[]

0 commit comments

Comments
 (0)