FTS5TokenizerDescriptor
An FTS5 tokenizer, suitable for FTS5 table definitions:
db.create(virtualTable: "book", using: FTS5()) { t in
t.tokenizer = .unicode61() // FTS5TokenizerDescriptor
}
-
The tokenizer components
// ["unicode61"] FTS5TokenizerDescriptor.unicode61().components // ["unicode61", "remove_diacritics", "0"] FTS5TokenizerDescriptor.unicode61(removeDiacritics: false)).components
-
Creates an FTS5 tokenizer descriptor.
db.create(virtualTable: "book", using: FTS5()) { t in let tokenizer = FTS5TokenizerDescriptor(components: ["porter", "unicode61", "remove_diacritics", "0"]) t.tokenizer = tokenizer }
Precondition
Components is not empty -
The
ascii
tokenizerdb.create(virtualTable: "book", using: FTS5()) { t in t.tokenizer = .ascii() }
-
An
unicode61
tokenizerdb.create(virtualTable: "book", using: FTS5()) { t in t.tokenizer = .unicode61() }