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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase
TokenFilterBase.AbstractBuilder<BuilderT extends TokenFilterBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MinHashTokenFilter>Json deserializer forMinHashTokenFilter -
Method Summary
Modifier and TypeMethodDescriptionTokenFilterDefinition variant kind.final IntegerNumber of buckets to which hashes are assigned.final IntegerNumber of ways to hash each token in the stream.final IntegerNumber of hashes to keep from each bucket.static MinHashTokenFilterprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal BooleanIftrue, the filter fills empty buckets with the value of the first non-empty bucket to its circular right if thehash_set_sizeis1.Methods inherited from class co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase
serialize, setupTokenFilterBaseDeserializer, toString, versionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.json.JsonpSerializable
serializeMethods inherited from interface co.elastic.clients.elasticsearch._types.analysis.TokenFilterDefinitionVariant
_toTokenFilterDefinition
-
Field Details
-
_DESERIALIZER
Json deserializer forMinHashTokenFilter
-
-
Method Details
-
of
public static MinHashTokenFilter of(Function<MinHashTokenFilter.Builder, ObjectBuilder<MinHashTokenFilter>> fn) -
_tokenFilterDefinitionKind
TokenFilterDefinition variant kind.- Specified by:
_tokenFilterDefinitionKindin interfaceTokenFilterDefinitionVariant
-
bucketCount
Number of buckets to which hashes are assigned. Defaults to512.API name:
bucket_count -
hashCount
Number of ways to hash each token in the stream. Defaults to1.API name:
hash_count -
hashSetSize
Number of hashes to keep from each bucket. Defaults to1. Hashes are retained by ascending size, starting with the bucket’s smallest hash first.API name:
hash_set_size -
withRotation
Iftrue, the filter fills empty buckets with the value of the first non-empty bucket to its circular right if thehash_set_sizeis1. If thebucket_countargument is greater than 1, this parameter defaults totrue. Otherwise, this parameter defaults tofalse.API name:
with_rotation -
serializeInternal
- Overrides:
serializeInternalin classTokenFilterBase
-
setupMinHashTokenFilterDeserializer
protected static void setupMinHashTokenFilterDeserializer(ObjectDeserializer<MinHashTokenFilter.Builder> op)
-