Class HunspellTokenFilter
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase
co.elastic.clients.elasticsearch._types.analysis.HunspellTokenFilter
- All Implemented Interfaces:
TokenFilterDefinitionVariant,JsonpSerializable
@JsonpDeserializable
public class HunspellTokenFilter
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<HunspellTokenFilter>Json deserializer forHunspellTokenFilter -
Method Summary
Modifier and TypeMethodDescriptionTokenFilterDefinition variant kind.final Booleandedup()Iftrue, duplicate tokens are removed from the filter’s output.final StringOne or more.dicfiles (e.g,en_US.dic, my_custom.dic) to use for the Hunspell dictionary.final Stringlocale()Required - Locale directory used to specify the.affand.dicfiles for a Hunspell dictionary.final BooleanIftrue, only the longest stemmed version of each token is included in the output.static HunspellTokenFilterprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods 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 forHunspellTokenFilter
-
-
Method Details
-
of
public static HunspellTokenFilter of(Function<HunspellTokenFilter.Builder, ObjectBuilder<HunspellTokenFilter>> fn) -
_tokenFilterDefinitionKind
TokenFilterDefinition variant kind.- Specified by:
_tokenFilterDefinitionKindin interfaceTokenFilterDefinitionVariant
-
dedup
Iftrue, duplicate tokens are removed from the filter’s output. Defaults totrue.API name:
dedup -
dictionary
One or more.dicfiles (e.g,en_US.dic, my_custom.dic) to use for the Hunspell dictionary. By default, thehunspellfilter uses all.dicfiles in the<$ES_PATH_CONF>/hunspell/<locale>directory specified using thelang,language, orlocaleparameter.API name:
dictionary -
locale
Required - Locale directory used to specify the.affand.dicfiles for a Hunspell dictionary.API name:
locale -
longestOnly
Iftrue, only the longest stemmed version of each token is included in the output. Iffalse, all stemmed versions of the token are included. Defaults tofalse.API name:
longest_only -
serializeInternal
- Overrides:
serializeInternalin classTokenFilterBase
-
setupHunspellTokenFilterDeserializer
protected static void setupHunspellTokenFilterDeserializer(ObjectDeserializer<HunspellTokenFilter.Builder> op)
-