Class TopHitsResults
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.TopHitsResults
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class TopHitsResults
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Top hit information for this query.
-
Constructor Summary
Constructors Constructor Description TopHitsResults()
-
Method Summary
Modifier and Type Method Description List<QueryResult>
getHits()
Gets the hits.Long
getMatchingResults()
Gets the matchingResults.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
TopHitsResults
public TopHitsResults()
-
-
Method Details
-
getMatchingResults
Gets the matchingResults.Number of matching results.
- Returns:
- the matchingResults
-
getHits
Gets the hits.Top results returned by the aggregation.
- Returns:
- the hits
-