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 SummaryConstructors Constructor Description QueryTermAggregationResult()
- 
Method SummaryModifier and Type Method Description List<QueryAggregation>getAggregations()Gets the aggregations.LonggetEstimatedMatchingDocuments()Gets the estimatedMatchingDocuments.StringgetKey()Gets the key.LonggetMatchingResults()Gets the matchingResults.DoublegetRelevancy()Gets the relevancy.LonggetTotalMatchingDocuments()Gets the totalMatchingDocuments.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModelequals, hashCode, toString
- 
Constructor Details- 
QueryTermAggregationResultpublic QueryTermAggregationResult()
 
- 
- 
Method Details- 
getKeyGets the key.Value of the field with a non-zero frequency in the document set. - Returns:
- the key
 
- 
getMatchingResultsGets the matchingResults.Number of documents containing the 'key'. - Returns:
- the matchingResults
 
- 
getRelevancyGets the relevancy.The relevancy for this term. - Returns:
- the relevancy
 
- 
getTotalMatchingDocumentsGets 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
 
- 
getEstimatedMatchingDocumentsGets 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
 
- 
getAggregationsGets the aggregations.An array of sub aggregations. - Returns:
- the aggregations
 
 
-