mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
Add MATCH syntax to fts docs
This commit is contained in:
@@ -153,6 +153,8 @@ Three FTS functions are provided:
|
||||
- **`fts_match(col1, col2, ..., 'query')`** - Returns a boolean indicating if the row matches (used in WHERE clause)
|
||||
- **`fts_highlight(col1, col2, ..., before_tag, after_tag, 'query')`** - Returns text with matching terms wrapped in tags
|
||||
|
||||
`WHERE col MATCH 'query'` is available for use instead of `fts_match(col, 'query')`
|
||||
|
||||
### Basic Query Examples
|
||||
|
||||
```sql
|
||||
|
||||
@@ -888,6 +888,7 @@ WITH (tokenizer = 'simple', weights = 'name=3.0,description=1.0');
|
||||
Turso provides three FTS functions:
|
||||
|
||||
#### `fts_match(col1, col2, ..., 'query')`
|
||||
#### or `WHERE col1, col2 MATCH 'query'`
|
||||
|
||||
Returns a boolean indicating if the row matches the query. Used in `WHERE` clauses:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user