Skip to content

Commit d3f36f9

Browse files
committed
Clean up annotations
1 parent 69766d1 commit d3f36f9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Sometimes you need to require that all search terms appear in the matching docum
182182

183183
```esql
184184
FROM cooking_blog
185-
| WHERE match(description, "fluffy pancakes", {"operator": "AND"}) # Require ALL terms to match instead of default OR
185+
| WHERE match(description, "fluffy pancakes", {"operator": "AND"}) # Require ALL terms to match
186186
| LIMIT 1000
187187
```
188188

@@ -194,7 +194,7 @@ Sometimes requiring all terms is too strict, but the default OR behavior is too
194194

195195
```esql
196196
FROM cooking_blog
197-
| WHERE match(title, "fluffy pancakes breakfast", {"minimum_should_match": 2}) # At least 2 of the 3 terms must match
197+
| WHERE match(title, "fluffy pancakes breakfast", {"minimum_should_match": 2})
198198
| LIMIT 1000
199199
```
200200

@@ -206,7 +206,7 @@ When users enter a search query, they often don't know (or care) whether their s
206206

207207
```esql
208208
FROM cooking_blog
209-
| WHERE title:"vegetarian curry" OR description:"vegetarian curry" OR tags:"vegetarian curry" # Search across different fields with equal importance
209+
| WHERE title:"vegetarian curry" OR description:"vegetarian curry" OR tags:"vegetarian curry"
210210
| LIMIT 1000
211211
```
212212

@@ -224,8 +224,6 @@ FROM cooking_blog METADATA _score # Request _score metadata for relevance-based
224224
| LIMIT 1000
225225
```
226226

227-
In this example, we're using the `boost` parameter to make matches in the title field twice as important as matches in other fields. We also request the `_score` metadata field to sort results by relevance.
228-
229227
:::{tip}
230228
When working with relevance scoring in ES|QL, it's important to understand how `_score` works. If you don't include `METADATA _score` in your query, you're only performing filtering operations with no relevance calculation.
231229

0 commit comments

Comments
 (0)