ValueIndexConfiguration

public struct ValueIndexConfiguration : IndexConfiguration, IndexConfigConvertable

Configuration for creating value indexes.

  • Gets the expressions to use to create the index.

    Declaration

    Swift

    public let expressions: [String]
  • A predicate expression defining conditions for indexing documents. Only documents satisfying the predicate are included, enabling partial indexes.

    Declaration

    Swift

    public let `where`: String?
  • Initializes a value index using an array of N1QL expression strings, with an optional where clause for partial indexing.

    Declaration

    Swift

    public init(_ expressions: [String], where: String? = nil)