Class TopHitsAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.TopHitsAggregation
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable
@JsonpDeserializable public class TopHitsAggregation extends MetricAggregationBase implements AggregationVariant
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTopHitsAggregation.BuilderBuilder forTopHitsAggregation.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
MetricAggregationBase.AbstractBuilder<BuilderT extends MetricAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TopHitsAggregation>_DESERIALIZERJson deserializer forTopHitsAggregation -
Method Summary
Modifier and Type Method Description Aggregation.Kind_aggregationKind()Aggregation variant kind.java.util.List<java.lang.String>docvalueFields()API name:docvalue_fieldsjava.lang.Booleanexplain()API name:explainjava.lang.Integerfrom()API name:fromHighlighthighlight()API name:highlightstatic TopHitsAggregationof(java.util.function.Function<TopHitsAggregation.Builder,ObjectBuilder<TopHitsAggregation>> fn)java.util.Map<java.lang.String,ScriptField>scriptFields()API name:script_fieldsjava.lang.BooleanseqNoPrimaryTerm()API name:seq_no_primary_termprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTopHitsAggregationDeserializer(ObjectDeserializer<TopHitsAggregation.Builder> op)java.lang.Integersize()API name:sizejava.util.List<SortOptions>sort()API name:sortSourceConfigsource()API name:_sourcejava.util.List<java.lang.String>storedFields()API name:stored_fieldsjava.lang.BooleantrackScores()API name:track_scoresjava.lang.Booleanversion()API name:versionMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
field, missing, script, serialize, setupMetricAggregationBaseDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant
_toAggregation
-
Field Details
-
_DESERIALIZER
Json deserializer forTopHitsAggregation
-
-
Method Details
-
of
public static TopHitsAggregation of(java.util.function.Function<TopHitsAggregation.Builder,ObjectBuilder<TopHitsAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
docvalueFields
public final java.util.List<java.lang.String> docvalueFields()API name:docvalue_fields -
explain
@Nullable public final java.lang.Boolean explain()API name:explain -
from
@Nullable public final java.lang.Integer from()API name:from -
highlight
API name:highlight -
scriptFields
API name:script_fields -
size
@Nullable public final java.lang.Integer size()API name:size -
sort
API name:sort -
source
API name:_source -
storedFields
public final java.util.List<java.lang.String> storedFields()API name:stored_fields -
trackScores
@Nullable public final java.lang.Boolean trackScores()API name:track_scores -
version
@Nullable public final java.lang.Boolean version()API name:version -
seqNoPrimaryTerm
@Nullable public final java.lang.Boolean seqNoPrimaryTerm()API name:seq_no_primary_term -
serializeInternal
- Overrides:
serializeInternalin classMetricAggregationBase
-
setupTopHitsAggregationDeserializer
protected static void setupTopHitsAggregationDeserializer(ObjectDeserializer<TopHitsAggregation.Builder> op)
-