Class SignificantTextAggregation

All Implemented Interfaces:
AggregationVariant, JsonpSerializable

@JsonpDeserializable public class SignificantTextAggregation extends BucketAggregationBase implements AggregationVariant
See Also:
  • Field Details

  • Method Details

    • of

    • _aggregationKind

      public Aggregation.Kind _aggregationKind()
      Aggregation variant kind.
      Specified by:
      _aggregationKind in interface AggregationVariant
    • backgroundFilter

      @Nullable public final Query 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

      @Nullable public final ChiSquareHeuristic 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

      @Nullable public final TermsExclude exclude()
      Values to exclude.

      API name: exclude

    • executionHint

      @Nullable public final TermsAggregationExecutionHint executionHint()
      Determines whether the aggregation will use field values directly or global ordinals.

      API name: execution_hint

    • field

      @Nullable public final String field()
      The field from which to return significant text.

      API name: field

    • filterDuplicateText

      @Nullable public final Boolean filterDuplicateText()
      Whether to out duplicate text to deal with noisy data.

      API name: filter_duplicate_text

    • gnd

      @Nullable public final GoogleNormalizedDistanceHeuristic gnd()
      Use Google normalized distance as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, 2007, as the significance score.

      API name: gnd

    • include

      public final List<String> include()
      Values to include.

      API name: include

    • jlh

      @Nullable public final EmptyObject jlh()
      Use JLH score as the significance score.

      API name: jlh

    • minDocCount

      @Nullable public final Long minDocCount()
      Only return values that are found in more than min_doc_count hits.

      API name: min_doc_count

    • mutualInformation

      @Nullable public final MutualInformationHeuristic 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

      @Nullable public final PercentageScoreHeuristic 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

      @Nullable public final ScriptedHeuristic scriptHeuristic()
      Customized score, implemented via a script.

      API name: script_heuristic

    • shardMinDocCount

      @Nullable public final Long shardMinDocCount()
      Regulates the certainty a shard has if the values should actually be added to the candidate list or not with respect to the min_doc_count. Values will only be considered if their local shard frequency within the set is higher than the shard_min_doc_count.

      API name: shard_min_doc_count

    • shardSize

      @Nullable public final Integer shardSize()
      The number of candidate terms produced by each shard. By default, shard_size will be automatically estimated based on the number of shards and the size parameter.

      API name: shard_size

    • size

      @Nullable public final Integer size()
      The number of buckets returned out of the overall terms list.

      API name: size

    • sourceFields

      public final List<String> sourceFields()
      Overrides the JSON _source fields from which text will be analyzed.

      API name: source_fields

    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class AggregationBase
    • setupSignificantTextAggregationDeserializer

      protected static void setupSignificantTextAggregationDeserializer(ObjectDeserializer<SignificantTextAggregation.Builder> op)