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 |
matchingResults |
protected java.util.List<QueryResponsePassage> |
passages |
protected java.util.List<QueryResult> |
results |
protected RetrievalDetails |
retrievalDetails |
protected java.lang.String |
suggestedQuery |
protected java.util.List<QuerySuggestedRefinement> |
suggestedRefinements |
protected java.util.List<QueryTableResult> |
tableResults |
Constructor and Description |
---|
QueryResponse() |
Modifier and Type | Method and Description |
---|---|
java.util.List<QueryAggregation> |
getAggregations()
Gets the aggregations.
|
java.lang.Long |
getMatchingResults()
Gets the matchingResults.
|
java.util.List<QueryResponsePassage> |
getPassages()
Gets the passages.
|
java.util.List<QueryResult> |
getResults()
Gets the results.
|
RetrievalDetails |
getRetrievalDetails()
Gets the retrievalDetails.
|
java.lang.String |
getSuggestedQuery()
Gets the suggestedQuery.
|
java.util.List<QuerySuggestedRefinement> |
getSuggestedRefinements()
Gets the suggestedRefinements.
|
java.util.List<QueryTableResult> |
getTableResults()
Gets the tableResults.
|
@SerializedName(value="matching_results") protected java.lang.Long matchingResults
protected java.util.List<QueryResult> results
protected java.util.List<QueryAggregation> aggregations
@SerializedName(value="retrieval_details") protected RetrievalDetails retrievalDetails
@SerializedName(value="suggested_query") protected java.lang.String suggestedQuery
@SerializedName(value="suggested_refinements") protected java.util.List<QuerySuggestedRefinement> suggestedRefinements
@SerializedName(value="table_results") protected java.util.List<QueryTableResult> tableResults
protected java.util.List<QueryResponsePassage> passages
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 aggregations for the query.
public RetrievalDetails getRetrievalDetails()
An object contain retrieval type information.
public java.lang.String getSuggestedQuery()
Suggested correction to the submitted **natural_language_query** value.
public java.util.List<QuerySuggestedRefinement> getSuggestedRefinements()
Array of suggested refinements.
public java.util.List<QueryTableResult> getTableResults()
Array of table results.
public java.util.List<QueryResponsePassage> getPassages()
Passages returned by Discovery.