Class TopHits

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.QueryAggregation
com.ibm.watson.discovery.v1.model.TopHits
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class TopHits
extends QueryAggregation
TopHits.
  • Constructor Details

    • TopHits

      public TopHits()
  • Method Details

    • getSize

      public Long getSize()
      Gets the size.

      Number of top hits returned by the aggregation.

      Returns:
      the size
    • getHits

      public TopHitsResults getHits()
      Gets the hits.
      Returns:
      the hits