Class HunspellTokenFilter.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase.AbstractBuilder<HunspellTokenFilter.Builder>
co.elastic.clients.elasticsearch._types.analysis.HunspellTokenFilter.Builder
- All Implemented Interfaces:
WithJson<HunspellTokenFilter.Builder>,ObjectBuilder<HunspellTokenFilter>
- Enclosing class:
- HunspellTokenFilter
public static class HunspellTokenFilter.Builder
extends TokenFilterBase.AbstractBuilder<HunspellTokenFilter.Builder>
implements ObjectBuilder<HunspellTokenFilter>
Builder for
HunspellTokenFilter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHunspellTokenFilter.Iftrue, duplicate tokens are removed from the filter’s output.dictionary(String value) One or more.dicfiles (e.g,en_US.dic, my_custom.dic) to use for the Hunspell dictionary.Required - Locale directory used to specify the.affand.dicfiles for a Hunspell dictionary.longestOnly(Boolean value) Iftrue, only the longest stemmed version of each token is included in the output.protected HunspellTokenFilter.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase.AbstractBuilder
versionMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 -
self
- Specified by:
selfin classTokenFilterBase.AbstractBuilder<HunspellTokenFilter.Builder>
-
build
Builds aHunspellTokenFilter.- Specified by:
buildin interfaceObjectBuilder<HunspellTokenFilter>- Throws:
NullPointerException- if some of the required fields are null.
-