From 69b69da52a9e066e285b06799aa3356be07ebd50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 6 Oct 2016 14:09:10 +0200 Subject: [PATCH] FTS5 documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1f08f5d4b..2a38e8e12 100644 --- a/README.md +++ b/README.md @@ -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