public class QueryResult
extends com.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
documentId |
protected java.util.List<QueryResultPassage> |
documentPassages |
protected java.util.Map<java.lang.String,java.lang.Object> |
metadata |
protected QueryResultMetadata |
resultMetadata |
Constructor and Description |
---|
QueryResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDocumentId()
Gets the documentId.
|
java.util.List<QueryResultPassage> |
getDocumentPassages()
Gets the documentPassages.
|
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata()
Gets the metadata.
|
QueryResultMetadata |
getResultMetadata()
Gets the resultMetadata.
|
@SerializedName(value="document_id") protected java.lang.String documentId
@SerializedName(value="metadata") protected java.util.Map<java.lang.String,java.lang.Object> metadata
@SerializedName(value="result_metadata") protected QueryResultMetadata resultMetadata
@SerializedName(value="document_passages") protected java.util.List<QueryResultPassage> documentPassages
public java.lang.String getDocumentId()
The unique identifier of the document.
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
Metadata of the document.
public QueryResultMetadata getResultMetadata()
Metadata of a query result.
public java.util.List<QueryResultPassage> getDocumentPassages()
Passages returned by Discovery.