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, 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<FiltersAggregation>
Json deserializer forFiltersAggregation
-
Method Summary
Modifier and TypeMethodDescriptionAggregation variant kind.filters()
Collection of queries from which to build buckets.final Boolean
keyed()
By default, the named filters aggregation returns the buckets as an object.static FiltersAggregation
final Boolean
Set totrue
to add a bucket to the response which will contain all documents that do not match any of the given filters.final String
The key with which the other bucket is returned.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
_aggregationKind
in interfaceAggregationVariant
-
filters
Collection of queries from which to build buckets.API name:
filters
-
otherBucket
Set totrue
to 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 tofalse
to return the buckets as an array of objects.API name:
keyed
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupFiltersAggregationDeserializer
protected static void setupFiltersAggregationDeserializer(ObjectDeserializer<FiltersAggregation.Builder> op)
-