Skip to content

Commit 4f4289f

Browse files
committed
update command
1 parent 6f4ba22 commit 4f4289f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ For more complex relevance scoring with combined criteria, you can use the `EVAL
291291

292292
```esql
293293
FROM cooking_blog METADATA _score
294+
| WHERE NOT category.keyword == "Dessert"
294295
| EVAL tags_concat = MV_CONCAT(tags.keyword, ",") # Convert multi-value field to string
295296
| WHERE tags_concat LIKE "*vegetarian*" AND rating >= 4.5 # Wildcard pattern matching
296297
| WHERE match(title, "curry spicy", {"boost": 2.0}) OR match(description, "curry spicy") # Uses full text functions, will update _score metadata field
297298
| EVAL category_boost = CASE(category.keyword == "Main Course", 1.0, 0.0) # Conditional boost
298299
| EVAL date_boost = CASE(DATE_DIFF("month", date, NOW()) <= 1, 0.5, 0.0) # Boost recent content
299300
| EVAL custom_score = _score + category_boost + date_boost # Combine scores
300-
| WHERE NOT category.keyword == "Dessert"
301301
| WHERE custom_score > 0 # Filter based on custom score
302302
| SORT custom_score DESC
303303
| LIMIT 1000

0 commit comments

Comments
 (0)