QueryResultPassage

public struct QueryResultPassage : Codable, Equatable

A passage query result.

  • The content of the extracted passage.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public var endOffset: Int?
  • The label of the field from which the passage has been extracted.

    Declaration

    Swift

    public var field: String?
  • Estimate of the probability that the passage is relevant.

    Declaration

    Swift

    public var confidence: Double?
  • An arry of extracted answers to the specified query.

    Declaration

    Swift

    public var answers: [ResultPassageAnswer]?