public class QueryResponse
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Constructor and Description |
---|
QueryResponse() |
Modifier and Type | Method and Description |
---|---|
List<QueryAggregation> |
getAggregations()
Gets the aggregations.
|
Long |
getMatchingResults()
Gets the matchingResults.
|
List<QueryResponsePassage> |
getPassages()
Gets the passages.
|
List<QueryResult> |
getResults()
Gets the results.
|
RetrievalDetails |
getRetrievalDetails()
Gets the retrievalDetails.
|
String |
getSuggestedQuery()
Gets the suggestedQuery.
|
List<QuerySuggestedRefinement> |
getSuggestedRefinements()
Gets the suggestedRefinements.
|
List<QueryTableResult> |
getTableResults()
Gets the tableResults.
|
public Long getMatchingResults()
The number of matching results for the query. Results that match due to a curation only are not counted in the total.
public List<QueryResult> getResults()
Array of document results for the query.
public List<QueryAggregation> getAggregations()
Array of aggregations for the query.
public RetrievalDetails getRetrievalDetails()
An object contain retrieval type information.
public String getSuggestedQuery()
Suggested correction to the submitted **natural_language_query** value.
public List<QuerySuggestedRefinement> getSuggestedRefinements()
Array of suggested refinements.
public List<QueryTableResult> getTableResults()
Array of table results.
public List<QueryResponsePassage> getPassages()
Passages that best match the query from across all of the collections in the project.
Copyright © 2021 IBM Cloud. All rights reserved.