Class TokenPruningConfig

java.lang.Object
co.elastic.clients.elasticsearch._types.TokenPruningConfig
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class TokenPruningConfig extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • tokensFreqRatioThreshold

      @Nullable public final Integer tokensFreqRatioThreshold()
      Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.

      API name: tokens_freq_ratio_threshold

    • tokensWeightThreshold

      @Nullable public final Float tokensWeightThreshold()
      Tokens whose weight is less than this threshold are considered nonsignificant and pruned.

      API name: tokens_weight_threshold

    • onlyScorePrunedTokens

      @Nullable public final Boolean onlyScorePrunedTokens()
      Whether to only score pruned tokens, vs only scoring kept tokens.

      API name: only_score_pruned_tokens

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupTokenPruningConfigDeserializer

      protected static void setupTokenPruningConfigDeserializer(ObjectDeserializer<TokenPruningConfig.Builder> op)