SearchResultAnswer

public struct SearchResultAnswer : Codable, Equatable

An object specifing a segment of text that was identified as a direct answer to the search query.

  • The text of the answer.

    Declaration

    Swift

    public var text: String
  • The confidence score for the answer, as returned by the Discovery service.

    Declaration

    Swift

    public var confidence: Double