FTS5 documentation

This commit is contained in:
Gwendal Roué committed 2016-10-06 14:09:10 +02:00
1 parent 7a7be6e454
commit 69b69da52a
1 file changed
+2 -2
+2 -2
View File
@@ -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