Class MinHashTokenFilter

java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase
co.elastic.clients.elasticsearch._types.analysis.MinHashTokenFilter
All Implemented Interfaces:
TokenFilterDefinitionVariant, JsonpSerializable

@JsonpDeserializable public class MinHashTokenFilter extends TokenFilterBase implements TokenFilterDefinitionVariant
See Also:
  • Field Details

  • Method Details

    • of

    • _tokenFilterDefinitionKind

      public TokenFilterDefinition.Kind _tokenFilterDefinitionKind()
      TokenFilterDefinition variant kind.
      Specified by:
      _tokenFilterDefinitionKind in interface TokenFilterDefinitionVariant
    • bucketCount

      @Nullable public final Integer bucketCount()
      Number of buckets to which hashes are assigned. Defaults to 512.

      API name: bucket_count

    • hashCount

      @Nullable public final Integer hashCount()
      Number of ways to hash each token in the stream. Defaults to 1.

      API name: hash_count

    • hashSetSize

      @Nullable public final Integer hashSetSize()
      Number of hashes to keep from each bucket. Defaults to 1. Hashes are retained by ascending size, starting with the bucket’s smallest hash first.

      API name: hash_set_size

    • withRotation

      @Nullable public final Boolean withRotation()
      If true, the filter fills empty buckets with the value of the first non-empty bucket to its circular right if the hash_set_size is 1. If the bucket_count argument is greater than 1, this parameter defaults to true. Otherwise, this parameter defaults to false.

      API name: with_rotation

    • serializeInternal

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

      protected static void setupMinHashTokenFilterDeserializer(ObjectDeserializer<MinHashTokenFilter.Builder> op)