public class QueryAggregation
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Classes which extend this class: - QueryAggregationQueryTermAggregation - QueryAggregationQueryGroupByAggregation - QueryAggregationQueryHistogramAggregation - QueryAggregationQueryTimesliceAggregation - QueryAggregationQueryNestedAggregation - QueryAggregationQueryFilterAggregation - QueryAggregationQueryCalculationAggregation - QueryAggregationQueryTopHitsAggregation - QueryAggregationQueryPairAggregation - QueryAggregationQueryTrendAggregation - QueryAggregationQueryTopicAggregation
Modifier and Type | Method and Description |
---|---|
List<Map<String,Object>> |
getAggregations()
Gets the aggregations.
|
Long |
getCount()
Gets the count.
|
String |
getFacet()
Gets the facet.
|
String |
getField()
Gets the field.
|
String |
getFirst()
Gets the first.
|
QueryTopHitsAggregationResult |
getHits()
Gets the hits.
|
String |
getMatch()
Gets the match.
|
Long |
getMatchingResults()
Gets the matchingResults.
|
String |
getName()
Gets the name.
|
String |
getPath()
Gets the path.
|
String |
getSecond()
Gets the second.
|
Long |
getSize()
Gets the size.
|
String |
getTimeSegments()
Gets the timeSegments.
|
String |
getType()
Gets the type.
|
Double |
getValue()
Gets the value.
|
Boolean |
isShowEstimatedMatchingResults()
Gets the showEstimatedMatchingResults.
|
Boolean |
isShowTotalMatchingDocuments()
Gets the showTotalMatchingDocuments.
|
public String getType()
Specifies that the aggregation type is `term`.
public String getField()
The field in the document where the values come from.
public Long getCount()
The number of results returned. Not returned if `relevancy:true` is specified in the request.
public String getName()
Identifier specified in the query request of this aggregation. Not returned if `relevancy:true` is specified in the request.
public String getPath()
The path to the document field to scope subsequent aggregations to.
public Long getMatchingResults()
Number of nested documents found in the specified field.
public List<Map<String,Object>> getAggregations()
An array of subaggregations.
public String getMatch()
The filter that is written in Discovery Query Language syntax and is applied to the documents before subaggregations are run.
public Double getValue()
The value of the calculation.
public Long getSize()
The number of documents to return.
public QueryTopHitsAggregationResult getHits()
A query response that contains the matching documents for the preceding aggregations.
public String getFirst()
Specifies the first aggregation in the pair. The aggregation must be a `term`, `group_by`, `histogram`, or `timeslice` aggregation type.
public String getSecond()
Specifies the second aggregation in the pair. The aggregation must be a `term`, `group_by`, `histogram`, or `timeslice` aggregation type.
public Boolean isShowEstimatedMatchingResults()
Indicates whether to include estimated matching result information.
public Boolean isShowTotalMatchingDocuments()
Indicates whether to include total matching documents information.
public String getFacet()
Specifies the `term` or `group_by` aggregation for the facet that you want to analyze.
public String getTimeSegments()
Specifies the `timeslice` aggregation that defines the time segments.
Copyright © 2024 IBM Cloud. All rights reserved.