Class QueryTopHitsAggregationResult

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.QueryTopHitsAggregationResult
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class QueryTopHitsAggregationResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A query response that contains the matching documents for the preceding aggregations.
  • Constructor Details

    • QueryTopHitsAggregationResult

      public QueryTopHitsAggregationResult()
  • Method Details

    • getMatchingResults

      public Long getMatchingResults()
      Gets the matchingResults.

      Number of matching results.

      Returns:
      the matchingResults
    • getHits

      public List<Map<String,​Object>> getHits()
      Gets the hits.

      An array of the document results.

      Returns:
      the hits