FullTextIndex
public final class FullTextIndex: Index, CBLIndexConvertible
A full-text search index for full-text search query with the match operator.
-
Set to true ignore accents/diacritical marks. The default value is false.
Declaration
Swift
public func ignoreAccents(_ ignoreAccents: Bool) -> Self
Parameters
ignoreAccents
The ignore accent value.
Return Value
The FTSIndex instance.
-
The language code which is an ISO-639 language code such as
en
,fr
, etc. Setting the language code affects how word breaks and word stems are parsed. Without setting the language code, the current locale’s language will be used. Setting nil value or “” value to disable the language features.Declaration
Swift
public func language(_ language: String?) -> Self
Parameters
language
The language code.
Return Value
The FTSIndex instance.