Class TermsAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.TermsAggregation
- All Implemented Interfaces:
AggregationVariant,ApiKeyAggregationVariant,PivotGroupByVariant,JsonpSerializable
@JsonpDeserializable
public class TermsAggregation
extends BucketAggregationBase
implements AggregationVariant, PivotGroupByVariant, ApiKeyAggregationVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
BucketAggregationBase.AbstractBuilder<BuilderT extends BucketAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TermsAggregation>Json deserializer forTermsAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregation variant kind.ApiKeyAggregation variant kind.PivotGroupBy variant kind.Determines how child aggregations should be calculated: breadth-first or depth-first.final TermsExcludeexclude()Values to exclude.Determines whether the aggregation will use field values directly or global ordinals.final Stringfield()The field from which to return terms.final Stringformat()API name:formatfinal TermsIncludeinclude()Values to include.final IntegerOnly return values that are found in more thanmin_doc_counthits.final FieldValuemissing()The value to apply to documents that do not have a value.final BooleanAPI name:missing_bucketfinal MissingOrderAPI name:missing_orderstatic TermsAggregationfinal List<NamedValue<SortOrder>>order()Specifies the sort order of the buckets.final Scriptscript()API name:scriptvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal LongRegulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to themin_doc_count.final IntegerThe number of candidate terms produced by each shard.final BooleanSet totrueto return thedoc_count_error_upper_bound, which is an upper bound to the error on thedoc_countreturned by each shard.final Integersize()The number of buckets returned out of the overall terms list.toString()final StringCoerced unmapped fields into the specified type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant
_toAggregationMethods inherited from interface co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant
_toApiKeyAggregationMethods inherited from interface co.elastic.clients.elasticsearch.transform.PivotGroupByVariant
_toPivotGroupBy
-
Field Details
-
_DESERIALIZER
Json deserializer forTermsAggregation
-
-
Method Details
-
of
public static TermsAggregation of(Function<TermsAggregation.Builder, ObjectBuilder<TermsAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
_pivotGroupByKind
PivotGroupBy variant kind.- Specified by:
_pivotGroupByKindin interfacePivotGroupByVariant
-
_apiKeyAggregationKind
ApiKeyAggregation variant kind.- Specified by:
_apiKeyAggregationKindin interfaceApiKeyAggregationVariant
-
collectMode
Determines how child aggregations should be calculated: breadth-first or depth-first.API name:
collect_mode -
exclude
Values to exclude. Accepts regular expressions and partitions.API name:
exclude -
executionHint
Determines whether the aggregation will use field values directly or global ordinals.API name:
execution_hint -
field
The field from which to return terms.API name:
field -
include
Values to include. Accepts regular expressions and partitions.API name:
include -
minDocCount
Only return values that are found in more thanmin_doc_counthits.API name:
min_doc_count -
missing
The value to apply to documents that do not have a value. By default, documents without a value are ignored.API name:
missing -
missingOrder
API name:missing_order -
missingBucket
API name:missing_bucket -
valueType
Coerced unmapped fields into the specified type.API name:
value_type -
order
Specifies the sort order of the buckets. Defaults to sorting by descending document count.API name:
order -
script
API name:script -
shardMinDocCount
Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to themin_doc_count. Terms will only be considered if their local shard frequency within the set is higher than theshard_min_doc_count.API name:
shard_min_doc_count -
shardSize
The number of candidate terms produced by each shard. By default,shard_sizewill be automatically estimated based on the number of shards and thesizeparameter.API name:
shard_size -
showTermDocCountError
Set totrueto return thedoc_count_error_upper_bound, which is an upper bound to the error on thedoc_countreturned by each shard.API name:
show_term_doc_count_error -
size
The number of buckets returned out of the overall terms list.API name:
size -
format
API name:format -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTermsAggregationDeserializer
protected static void setupTermsAggregationDeserializer(ObjectDeserializer<TermsAggregation.Builder> op)
-