QueryResponsePassage
public struct QueryResponsePassage : Codable, Equatable
A passage query response.
-
The content of the extracted passage.
Declaration
Swift
public var passageText: String?
-
The confidence score of the passage’s analysis. A higher score indicates greater confidence.
Declaration
Swift
public var passageScore: Double?
-
The unique identifier of the ingested document.
Declaration
Swift
public var documentID: String?
-
The unique identifier of the collection.
Declaration
Swift
public var collectionID: 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?
-
An estimate of the probability that the passage is relevant.
Declaration
Swift
public var confidence: Double?
-
An array of extracted answers to the specified query.
Declaration
Swift
public var answers: [ResultPassageAnswer]?