Class QueryTopHitsAggregation
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.QueryAggregation
com.ibm.watson.discovery.v2.model.QueryTopHitsAggregation
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class QueryTopHitsAggregation extends QueryAggregation
Returns the top documents ranked by the score of the query.
-
Constructor Summary
Constructors Constructor Description QueryTopHitsAggregation()
-
Method Summary
Methods inherited from class com.ibm.watson.discovery.v2.model.QueryAggregation
getType
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
QueryTopHitsAggregation
public QueryTopHitsAggregation()
-
-
Method Details
-
getSize
Gets the size.The number of documents to return.
- Returns:
- the size
-
getName
Gets the name.Identifier specified in the query request of this aggregation.
- Returns:
- the name
-
getHits
Gets the hits.- Returns:
- the hits
-