FullTextIndex
public class FullTextIndex: Index
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 locale code which is an ISO-639 language code plus, optionally, an underscore and an ISO-3166 country code:
en
,en_US
,fr_CA
, etc. Setting the locale code affects how word breaks and word stems are parsed. Setting nil value to use current locale and setting “” to disable stemming. The default value is nil.Declaration
Swift
public func locale(_ locale: String?) -> Self
Parameters
locale
The locale code.
Return Value
The FTSIndex instance.