Skip to content

Commit

Permalink
ES|QL capitalize commands in doc examples for match and qstr (elastic…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHegarty authored Nov 8, 2024
1 parent 6c959b7 commit 4db5063
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ matchWithField
required_capability: match_function

// tag::match-with-field[]
from books
| where match(author, "Faulkner")
| keep book_no, author
| sort book_no
| limit 5;
FROM books
| WHERE MATCH(author, "Faulkner")
| KEEP book_no, author
| SORT book_no
| LIMIT 5;
// end::match-with-field[]

// tag::match-with-field-result[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ matchWithField
required_capability: match_operator_colon

// tag::match-with-field[]
from books
| where author:"Faulkner"
| keep book_no, author
| sort book_no
| limit 5;
FROM books
| WHERE author:"Faulkner"
| KEEP book_no, author
| SORT book_no
| LIMIT 5;
// end::match-with-field[]

// tag::match-with-field-result[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ qstrWithField
required_capability: qstr_function

// tag::qstr-with-field[]
from books
| where qstr("author: Faulkner")
| keep book_no, author
| sort book_no
| limit 5;
FROM books
| WHERE QSTR("author: Faulkner")
| KEEP book_no, author
| SORT book_no
| LIMIT 5;
// end::qstr-with-field[]

// tag::qstr-with-field-result[]
Expand Down

0 comments on commit 4db5063

Please sign in to comment.