Class QueryTermAggregationResult

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

public class QueryTermAggregationResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Top value result for the term aggregation.
  • Constructor Details

    • QueryTermAggregationResult

      public QueryTermAggregationResult()
  • Method Details

    • getKey

      public String getKey()
      Gets the key.

      Value of the field with a non-zero frequency in the document set.

      Returns:
      the key
    • getMatchingResults

      public Long getMatchingResults()
      Gets the matchingResults.

      Number of documents containing the 'key'.

      Returns:
      the matchingResults
    • getRelevancy

      public Double getRelevancy()
      Gets the relevancy.

      The relevancy for this term.

      Returns:
      the relevancy
    • getTotalMatchingDocuments

      public Long getTotalMatchingDocuments()
      Gets the totalMatchingDocuments.

      The number of documents which have the term as the value of specified field in the whole set of documents in this collection. Returned only when the `relevancy` parameter is set to `true`.

      Returns:
      the totalMatchingDocuments
    • getEstimatedMatchingDocuments

      public Long getEstimatedMatchingDocuments()
      Gets the estimatedMatchingDocuments.

      The estimated number of documents which would match the query and also meet the condition. Returned only when the `relevancy` parameter is set to `true`.

      Returns:
      the estimatedMatchingDocuments
    • getAggregations

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

      An array of sub aggregations.

      Returns:
      the aggregations