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 class
TopHitsAggregation.Builder
Builder 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>
_DESERIALIZER
Json 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_fields
java.lang.Boolean
explain()
API name:explain
java.lang.Integer
from()
API name:from
Highlight
highlight()
API name:highlight
static TopHitsAggregation
of(java.util.function.Function<TopHitsAggregation.Builder,ObjectBuilder<TopHitsAggregation>> fn)
java.util.Map<java.lang.String,ScriptField>
scriptFields()
API name:script_fields
java.lang.Boolean
seqNoPrimaryTerm()
API name:seq_no_primary_term
protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupTopHitsAggregationDeserializer(ObjectDeserializer<TopHitsAggregation.Builder> op)
java.lang.Integer
size()
API name:size
java.util.List<SortOptions>
sort()
API name:sort
SourceConfig
source()
API name:_source
java.util.List<java.lang.String>
storedFields()
API name:stored_fields
java.lang.Boolean
trackScores()
API name:track_scores
java.lang.Boolean
version()
API name:version
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
field, missing, script, serialize, setupMetricAggregationBaseDeserializer, 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 forTopHitsAggregation
-
-
Method Details
-
of
public static TopHitsAggregation of(java.util.function.Function<TopHitsAggregation.Builder,ObjectBuilder<TopHitsAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKind
in 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:
serializeInternal
in classMetricAggregationBase
-
setupTopHitsAggregationDeserializer
protected static void setupTopHitsAggregationDeserializer(ObjectDeserializer<TopHitsAggregation.Builder> op)
-