FTS3TokenizerDescriptor
public struct FTS3TokenizerDescriptor
An FTS3 tokenizer, suitable for FTS3 and FTS4 table definitions:
db.create(virtualTable: "book", using: FTS4()) { t in
t.tokenizer = .simple // FTS3TokenizerDescriptor
}
-
The “simple” tokenizer.
db.create(virtualTable: "book", using: FTS4()) { t in t.tokenizer = .simple }
Declaration
Swift
public static let simple: FTS3TokenizerDescriptor
-
The “porter” tokenizer.
db.create(virtualTable: "book", using: FTS4()) { t in t.tokenizer = .porter }
Declaration
Swift
public static let porter: FTS3TokenizerDescriptor
-
The “unicode61” tokenizer.
db.create(virtualTable: "book", using: FTS4()) { t in t.tokenizer = .unicode61() }
Declaration
Swift
public static func unicode61( diacritics: FTS3.Diacritics = .removeLegacy, separators: Set<Character> = [], tokenCharacters: Set<Character> = []) -> FTS3TokenizerDescriptor
Parameters
diacritics
By default SQLite will strip diacritics from latin characters.
separators
Unless empty (the default), SQLite will consider these characters as token separators.
tokenCharacters
Unless empty (the default), SQLite will consider these characters as token characters.