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 Details

    • QueryTopHitsAggregation

      public QueryTopHitsAggregation()
  • Method Details

    • getSize

      public Long getSize()
      Gets the size.

      The number of documents to return.

      Returns:
      the size
    • getName

      public String getName()
      Gets the name.

      Identifier specified in the query request of this aggregation.

      Returns:
      the name
    • getHits

      Gets the hits.
      Returns:
      the hits