Skip to content

Commit b76bb8b

Browse files
committed
Fix exact match query per original tutorial
1 parent 535b7e5 commit b76bb8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

solutions/search/esql-full-text-filter-tutorial.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Full-text search involves executing text-based queries across one or more docume
121121
ES|QL provides two ways to perform full-text searches:
122122

123123
1. Full match function syntax: `match(field, "search terms")`
124-
1. Compact syntax using the colon operator: `field:"search terms"`
124+
1. Compact syntax using the match operator "`:`": `field:"search terms"`
125125

126126
Both are equivalent and can be used interchangeably. The compact syntax is more concise, while the function syntax allows for more configuration options. We'll use the compact syntax in most examples for brevity.
127127
:::
@@ -273,8 +273,9 @@ POST /_query?format=txt
273273
{
274274
"query": """
275275
FROM cooking_blog
276-
| WHERE tags.keyword:"vegetarian"
276+
| WHERE author.keyword == "Maria Rodriguez"
277277
| KEEP title, author, rating, tags
278+
| SORT rating DESC
278279
| LIMIT 1000
279280
"""
280281
}

0 commit comments

Comments
 (0)