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 Summary
Constructors Constructor Description QueryTermAggregationResult()
-
Method Summary
Modifier and Type Method Description List<QueryAggregation>
getAggregations()
Gets the aggregations.Long
getEstimatedMatchingDocuments()
Gets the estimatedMatchingDocuments.String
getKey()
Gets the key.Long
getMatchingResults()
Gets the matchingResults.Double
getRelevancy()
Gets the relevancy.Long
getTotalMatchingDocuments()
Gets the totalMatchingDocuments.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
QueryTermAggregationResult
public QueryTermAggregationResult()
-
-
Method Details
-
getKey
Gets the key.Value of the field with a non-zero frequency in the document set.
- Returns:
- the key
-
getMatchingResults
Gets the matchingResults.Number of documents that contain the 'key'.
- Returns:
- the matchingResults
-
getRelevancy
Gets the relevancy.The relevancy for this term.
- Returns:
- the relevancy
-
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
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
Gets the aggregations.An array of sub-aggregations.
- Returns:
- the aggregations
-