Class FiltersAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.FiltersAggregation
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable
@JsonpDeserializable
public class FiltersAggregation
extends BucketAggregationBase
implements AggregationVariant
- 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<FiltersAggregation>Json deserializer forFiltersAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregation variant kind.filters()Collection of queries from which to build buckets.final Booleankeyed()By default, the named filters aggregation returns the buckets as an object.static FiltersAggregationfinal BooleanSet totrueto add a bucket to the response which will contain all documents that do not match any of the given filters.final StringThe key with which the other bucket is returned.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
setupBucketAggregationBaseDeserializerMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
meta, name, serialize, setupAggregationBaseDeserializer, toStringMethods 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
_toAggregation
-
Field Details
-
_DESERIALIZER
Json deserializer forFiltersAggregation
-
-
Method Details
-
of
public static FiltersAggregation of(Function<FiltersAggregation.Builder, ObjectBuilder<FiltersAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
filters
Collection of queries from which to build buckets.API name:
filters -
otherBucket
Set totrueto add a bucket to the response which will contain all documents that do not match any of the given filters.API name:
other_bucket -
otherBucketKey
The key with which the other bucket is returned.API name:
other_bucket_key -
keyed
By default, the named filters aggregation returns the buckets as an object. Set tofalseto return the buckets as an array of objects.API name:
keyed -
serializeInternal
- Overrides:
serializeInternalin classAggregationBase
-
setupFiltersAggregationDeserializer
protected static void setupFiltersAggregationDeserializer(ObjectDeserializer<FiltersAggregation.Builder> op)
-