Class QueryResult
java.lang.Object
com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
com.ibm.watson.discovery.v2.model.QueryResult
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class QueryResult extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
Result document for the specified query.
-
Constructor Summary
Constructors Constructor Description QueryResult()
-
Method Summary
Modifier and Type Method Description String
getDocumentId()
Gets the documentId.List<QueryResultPassage>
getDocumentPassages()
Gets the documentPassages.Map<String,Object>
getMetadata()
Gets the metadata.QueryResultMetadata
getResultMetadata()
Gets the resultMetadata.Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel
equals, get, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString
-
Constructor Details
-
QueryResult
public QueryResult()
-
-
Method Details
-
getDocumentId
Gets the documentId.The unique identifier of the document.
- Returns:
- the documentId
-
getMetadata
Gets the metadata.Metadata of the document.
- Returns:
- the metadata
-
getResultMetadata
Gets the resultMetadata.Metadata of a query result.
- Returns:
- the resultMetadata
-
getDocumentPassages
Gets the documentPassages.Passages returned by Discovery.
- Returns:
- the documentPassages
-