public class QueryResponse
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Method and Description |
---|---|
List<QueryAggregation> |
getAggregations()
Gets the aggregations.
|
Long |
getDuplicatesRemoved()
Gets the duplicatesRemoved.
|
Long |
getMatchingResults()
Gets the matchingResults.
|
List<QueryPassages> |
getPassages()
Gets the passages.
|
List<QueryResult> |
getResults()
Gets the results.
|
RetrievalDetails |
getRetrievalDetails()
Gets the retrievalDetails.
|
String |
getSessionToken()
Gets the sessionToken.
|
String |
getSuggestedQuery()
Gets the suggestedQuery.
|
public Long getMatchingResults()
The number of matching results for the query.
public List<QueryResult> getResults()
Array of document results for the query.
public List<QueryAggregation> getAggregations()
Array of aggregation results for the query.
public List<QueryPassages> getPassages()
Array of passage results for the query.
public Long getDuplicatesRemoved()
The number of duplicate results removed.
public 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 String getSuggestedQuery()
The suggestions for a misspelled natural language query.
Copyright © 2024 IBM Cloud. All rights reserved.