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 Details

    • TopHitsResults

      public TopHitsResults()
  • Method Details

    • getMatchingResults

      public Long getMatchingResults()
      Gets the matchingResults.

      Number of matching results.

      Returns:
      the matchingResults
    • getHits

      public List<QueryResult> getHits()
      Gets the hits.

      Top results returned by the aggregation.

      Returns:
      the hits