mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
FTS5 documentation
This commit is contained in:
1 parent
7a7be6e454
commit
69b69da52a
1 file changed
+2
-2
@@ -3317,7 +3317,7 @@ SQLite ships with three built-in FTS5 tokenizers: `ascii`, `porter` and `unicode
|
||||
- **unicode61**
|
||||
|
||||
```swift
|
||||
try db.create(virtualTable: "books", using: FTS4()) { t in
|
||||
try db.create(virtualTable: "books", using: FTS5()) { t in
|
||||
t.tokenizer = .unicode61()
|
||||
t.tokenizer = .unicode61(removeDiacritics: false)
|
||||
}
|
||||
@@ -3346,7 +3346,7 @@ SQLite ships with three built-in FTS5 tokenizers: `ascii`, `porter` and `unicode
|
||||
- **porter**
|
||||
|
||||
```swift
|
||||
try db.create(virtualTable: "books", using: FTS4()) { t in
|
||||
try db.create(virtualTable: "books", using: FTS5()) { t in
|
||||
t.tokenizer = .porter() // porter wrapping unicode61 (the default)
|
||||
t.tokenizer = .porter(.ascii) // porter wrapping ascii
|
||||
t.tokenizer = .porter(.unicode61(removeDiacritics: false)) // porter wrapping unicode61 without diacritics stripping
|
||||
|
||||
Reference in new issue
Block a user