Class QueryFilterAggregation

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

public class QueryFilterAggregation
extends QueryAggregation
A modifier that will narrow down the document set of the sub aggregations it precedes.
  • Constructor Details

    • QueryFilterAggregation

      public QueryFilterAggregation()
  • Method Details

    • getMatch

      public String getMatch()
      Gets the match.

      The filter written in Discovery Query Language syntax applied to the documents before sub aggregations are run.

      Returns:
      the match
    • getMatchingResults

      public Long getMatchingResults()
      Gets the matchingResults.

      Number of documents matching the filter.

      Returns:
      the matchingResults
    • getAggregations

      public List<QueryAggregation> getAggregations()
      Gets the aggregations.

      An array of sub aggregations.

      Returns:
      the aggregations