Class HyphenationDecompounderTokenFilter.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.analysis.CompoundWordTokenFilterBase.AbstractBuilder<HyphenationDecompounderTokenFilter.Builder>
co.elastic.clients.elasticsearch._types.analysis.HyphenationDecompounderTokenFilter.Builder
- All Implemented Interfaces:
WithJson<HyphenationDecompounderTokenFilter.Builder>,ObjectBuilder<HyphenationDecompounderTokenFilter>
- Enclosing class:
- HyphenationDecompounderTokenFilter
public static class HyphenationDecompounderTokenFilter.Builder
extends CompoundWordTokenFilterBase.AbstractBuilder<HyphenationDecompounderTokenFilter.Builder>
implements ObjectBuilder<HyphenationDecompounderTokenFilter>
Builder for
HyphenationDecompounderTokenFilter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHyphenationDecompounderTokenFilter.hyphenationPatternsPath(String value) Required - Path to an Apache FOP (Formatting Objects Processor) XML hyphenation pattern file.noOverlappingMatches(Boolean value) Iftrue, do not allow overlapping tokens.noSubMatches(Boolean value) Iftrue, do not match sub tokens in tokens that are in the word list.self()Methods inherited from class co.elastic.clients.elasticsearch._types.analysis.CompoundWordTokenFilterBase.AbstractBuilder
maxSubwordSize, minSubwordSize, minWordSize, onlyLongestMatch, wordList, wordList, wordListPathMethods 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
-
hyphenationPatternsPath
Required - Path to an Apache FOP (Formatting Objects Processor) XML hyphenation pattern file. This path must be absolute or relative to theconfiglocation. Only FOP v1.2 compatible files are supported.API name:
hyphenation_patterns_path -
noSubMatches
Iftrue, do not match sub tokens in tokens that are in the word list. Defaults tofalse.API name:
no_sub_matches -
noOverlappingMatches
public final HyphenationDecompounderTokenFilter.Builder noOverlappingMatches(@Nullable Boolean value) Iftrue, do not allow overlapping tokens. Defaults tofalse.API name:
no_overlapping_matches -
self
- Specified by:
selfin classTokenFilterBase.AbstractBuilder<HyphenationDecompounderTokenFilter.Builder>
-
build
Builds aHyphenationDecompounderTokenFilter.- Specified by:
buildin interfaceObjectBuilder<HyphenationDecompounderTokenFilter>- Throws:
NullPointerException- if some of the required fields are null.
-