ResultPassageAnswer

public struct ResultPassageAnswer : Codable, Equatable

Object that contains a potential answer to the specified query.

  • Answer text for the specified query as identified by Discovery.

    Declaration

    Swift

    public var answerText: String?
  • The position of the first character of the extracted answer in the originating field.

    Declaration

    Swift

    public var startOffset: Int?
  • The position after the last character of the extracted answer in the originating field.

    Declaration

    Swift

    public var endOffset: Int?
  • An estimate of the probability that the answer is relevant.

    Declaration

    Swift

    public var confidence: Double?