FullTextIndexConfiguration

public struct FullTextIndexConfiguration : IndexConfiguration, IndexConfigConvertable

Configuration for creating full-text indexes.

  • Gets the expressions to use to create the index.

    Declaration

    Swift

    public let expressions: [String]
  • Set the true value to ignore accents/diacritical marks. The default value is FullTextIndexConfiguration.defaultIgnoreAccents.

    Declaration

    Swift

    public let ignoreAccents: Bool
  • The language code which is an ISO-639 language such as “en”, “fr”, etc. Setting the language code affects how word breaks and word stems are parsed. Without setting the value, the current locale’s language will be used. Setting a nil or “” value to disable the language features.

    Declaration

    Swift

    public var language: String?
  • Constructor for creating a full-text index by using an array of N1QL expression strings

    Declaration

    Swift

    public init(_ expressions: [String], ignoreAccents: Bool? = FullTextIndexConfiguration.defaultIgnoreAccents, language: String? = nil)
  • [false] Accents and ligatures are not ignored when indexing via full text search

    Declaration

    Swift

    static let defaultIgnoreAccents: Bool