Class QueryTermAggregation

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

public class QueryTermAggregation
extends QueryAggregation
Returns the top values for the field specified.
  • Constructor Details

    • QueryTermAggregation

      public QueryTermAggregation()
  • Method Details

    • getField

      public String getField()
      Gets the field.

      The field in the document used to generate top values from.

      Returns:
      the field
    • getCount

      public Long getCount()
      Gets the count.

      The number of top values returned.

      Returns:
      the count
    • getName

      public String getName()
      Gets the name.

      Identifier specified in the query request of this aggregation.

      Returns:
      the name
    • getResults

      public List<QueryTermAggregationResult> getResults()
      Gets the results.

      Array of top values for the field.

      Returns:
      the results