public class QueryResponse
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.util.List<QueryAggregation> |
aggregations |
protected java.lang.Long |
duplicatesRemoved |
protected java.lang.Long |
matchingResults |
protected java.util.List<QueryPassages> |
passages |
protected java.util.List<QueryResult> |
results |
protected RetrievalDetails |
retrievalDetails |
protected java.lang.String |
sessionToken |
protected java.lang.String |
suggestedQuery |
Constructor and Description |
---|
QueryResponse() |
Modifier and Type | Method and Description |
---|---|
java.util.List<QueryAggregation> |
getAggregations()
Gets the aggregations.
|
java.lang.Long |
getDuplicatesRemoved()
Gets the duplicatesRemoved.
|
java.lang.Long |
getMatchingResults()
Gets the matchingResults.
|
java.util.List<QueryPassages> |
getPassages()
Gets the passages.
|
java.util.List<QueryResult> |
getResults()
Gets the results.
|
RetrievalDetails |
getRetrievalDetails()
Gets the retrievalDetails.
|
java.lang.String |
getSessionToken()
Gets the sessionToken.
|
java.lang.String |
getSuggestedQuery()
Gets the suggestedQuery.
|
@SerializedName(value="matching_results") protected java.lang.Long matchingResults
protected java.util.List<QueryResult> results
protected java.util.List<QueryAggregation> aggregations
protected java.util.List<QueryPassages> passages
@SerializedName(value="duplicates_removed") protected java.lang.Long duplicatesRemoved
@SerializedName(value="session_token") protected java.lang.String sessionToken
@SerializedName(value="retrieval_details") protected RetrievalDetails retrievalDetails
@SerializedName(value="suggested_query") protected java.lang.String suggestedQuery
public java.lang.Long getMatchingResults()
The number of matching results for the query.
public java.util.List<QueryResult> getResults()
Array of document results for the query.
public java.util.List<QueryAggregation> getAggregations()
Array of aggregation results for the query.
public java.util.List<QueryPassages> getPassages()
Array of passage results for the query.
public java.lang.Long getDuplicatesRemoved()
The number of duplicate results removed.
public java.lang.String getSessionToken()
The session token for this query. The session token can be used to add events associated with this query to the query and event log.
**Important:** Session tokens are case sensitive.
public RetrievalDetails getRetrievalDetails()
An object contain retrieval type information.
public java.lang.String getSuggestedQuery()
The suggestions for a misspelled natural language query.