QueryPassages

public struct QueryPassages : Codable, Equatable

A passage query result.

  • The unique identifier of the document from which the passage has been extracted.

    Declaration

    Swift

    public var documentID: String?
  • The confidence score of the passages’s analysis. A higher score indicates greater confidence.

    Declaration

    Swift

    public var passageScore: Double?
  • 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 of 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?