Add MATCH syntax to fts docs

This commit is contained in:
PThorpe92
2026-01-10 01:28:22 -05:00
parent e22b6847ab
commit fafac9a4aa
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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: