All Implemented Interfaces:
AggregationVariant, PivotGroupByVariant, JsonpSerializable

@JsonpDeserializable public class TermsAggregation extends BucketAggregationBase implements AggregationVariant, PivotGroupByVariant
See Also:
  • Field Details

  • Method Details

    • of

    • _aggregationKind

      public Aggregation.Kind _aggregationKind()
      Aggregation variant kind.
      Specified by:
      _aggregationKind in interface AggregationVariant
    • _pivotGroupByKind

      public PivotGroupBy.Kind _pivotGroupByKind()
      PivotGroupBy variant kind.
      Specified by:
      _pivotGroupByKind in interface PivotGroupByVariant
    • collectMode

      @Nullable public final TermsAggregationCollectMode collectMode()
      API name: collect_mode
    • exclude

      @Nullable public final TermsExclude exclude()
      API name: exclude
    • executionHint

      @Nullable public final TermsAggregationExecutionHint executionHint()
      API name: execution_hint
    • field

      @Nullable public final String field()
      API name: field
    • include

      @Nullable public final TermsInclude include()
      API name: include
    • minDocCount

      @Nullable public final Integer minDocCount()
      API name: min_doc_count
    • missing

      @Nullable public final FieldValue missing()
      API name: missing
    • missingOrder

      @Nullable public final MissingOrder missingOrder()
      API name: missing_order
    • missingBucket

      @Nullable public final Boolean missingBucket()
      API name: missing_bucket
    • valueType

      @Nullable public final String valueType()
      API name: value_type
    • order

      public final List<NamedValue<SortOrder>> order()
      API name: order
    • script

      @Nullable public final Script script()
      API name: script
    • shardMinDocCount

      @Nullable public final Long shardMinDocCount()
      Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the min_doc_count. Terms will only be considered if their local shard frequency within the set is higher than the shard_min_doc_count.

      API name: shard_min_doc_count

    • shardSize

      @Nullable public final Integer shardSize()
      The number of candidate terms produced by each shard. By default, shard_size will be automatically estimated based on the number of shards and the size parameter.

      API name: shard_size

    • showTermDocCountError

      @Nullable public final Boolean showTermDocCountError()
      API name: show_term_doc_count_error
    • size

      @Nullable public final Integer size()
      API name: size
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class AggregationBase
    • setupTermsAggregationDeserializer

      protected static void setupTermsAggregationDeserializer(ObjectDeserializer<TermsAggregation.Builder> op)