Class SignificantTermsAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.SignificantTermsAggregation
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable
@JsonpDeserializable
public class SignificantTermsAggregation
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<SignificantTermsAggregation>Json deserializer forSignificantTermsAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregation variant kind.final QueryA background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index.final ChiSquareHeuristicUse Chi square, as described in "Information Retrieval", Manning et al., Chapter 13.5.2, as the significance score.final TermsExcludeexclude()Terms to exclude.Mechanism by which the aggregation should be executed: using field values directly or using global ordinals.final Stringfield()The field from which to return significant terms.gnd()Use Google normalized distance as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, 2007, as the significance score.final TermsIncludeinclude()Terms to include.final EmptyObjectjlh()Use JLH score as the significance score.final LongOnly return terms that are found in more thanmin_doc_counthits.Use mutual information as described in "Information Retrieval", Manning et al., Chapter 13.5.1, as the significance score.static SignificantTermsAggregationfinal PercentageScoreHeuristicA simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term.final ScriptedHeuristicCustomized score, implemented via a script.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupSignificantTermsAggregationDeserializer(ObjectDeserializer<SignificantTermsAggregation.Builder> op) final LongRegulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to themin_doc_count.final IntegerCan be used to control the volumes of candidate terms produced by each shard.final Integersize()The number of buckets returned out of the overall terms list.toString()Methods 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 forSignificantTermsAggregation
-
-
Method Details
-
of
-
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
backgroundFilter
A background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index.API name:
background_filter -
chiSquare
Use Chi square, as described in "Information Retrieval", Manning et al., Chapter 13.5.2, as the significance score.API name:
chi_square -
exclude
Terms to exclude.API name:
exclude -
executionHint
Mechanism by which the aggregation should be executed: using field values directly or using global ordinals.API name:
execution_hint -
field
The field from which to return significant terms.API name:
field -
gnd
Use Google normalized distance as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, 2007, as the significance score.API name:
gnd -
include
Terms to include.API name:
include -
jlh
Use JLH score as the significance score.API name:
jlh -
minDocCount
Only return terms that are found in more thanmin_doc_counthits.API name:
min_doc_count -
mutualInformation
Use mutual information as described in "Information Retrieval", Manning et al., Chapter 13.5.1, as the significance score.API name:
mutual_information -
percentage
A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term.API name:
percentage -
scriptHeuristic
Customized score, implemented via a script.API name:
script_heuristic -
shardMinDocCount
Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to themin_doc_count. Terms will only be considered if their local shard frequency within the set is higher than theshard_min_doc_count.API name:
shard_min_doc_count -
shardSize
Can be used to control the volumes of candidate terms produced by each shard. By default,shard_sizewill be automatically estimated based on the number of shards and thesizeparameter.API name:
shard_size -
size
The number of buckets returned out of the overall terms list.API name:
size -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupSignificantTermsAggregationDeserializer
protected static void setupSignificantTermsAggregationDeserializer(ObjectDeserializer<SignificantTermsAggregation.Builder> op)
-