public class QueryResultPassage
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Method and Description |
---|---|
List<ResultPassageAnswer> |
getAnswers()
Gets the answers.
|
Long |
getEndOffset()
Gets the endOffset.
|
String |
getField()
Gets the field.
|
String |
getPassageText()
Gets the passageText.
|
Long |
getStartOffset()
Gets the startOffset.
|
public String getPassageText()
The content of the extracted passage.
public Long getStartOffset()
The position of the first character of the extracted passage in the originating field.
public Long getEndOffset()
The position after the last character of the extracted passage in the originating field.
public String getField()
The label of the field from which the passage has been extracted.
public List<ResultPassageAnswer> getAnswers()
An arry of extracted answers to the specified query. Returned for natural language queries when **passages.per_document** is `true`.
Copyright © 2024 IBM Cloud. All rights reserved.