TextIndexVersion

public enum TextIndexVersion: ValueConvertible

A TextIndexVersion defines to MongoDB what kind of text index should be created. Generally this is .two

  • one

    First text index version

    Declaration

    Swift

    case one
  • two

    Currently the default text index version

    Declaration

    Swift

    case two
  • Converts this TextIndexVersion to something easily embeddable in a Document

    Declaration

    Swift

    public func makePrimitive() -> BSON.Primitive