Class KeywordMarkerTokenFilter.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase.AbstractBuilder<KeywordMarkerTokenFilter.Builder>
co.elastic.clients.elasticsearch._types.analysis.KeywordMarkerTokenFilter.Builder
- All Implemented Interfaces:
WithJson<KeywordMarkerTokenFilter.Builder>,ObjectBuilder<KeywordMarkerTokenFilter>
- Enclosing class:
- KeywordMarkerTokenFilter
public static class KeywordMarkerTokenFilter.Builder
extends TokenFilterBase.AbstractBuilder<KeywordMarkerTokenFilter.Builder>
implements ObjectBuilder<KeywordMarkerTokenFilter>
Builder for
KeywordMarkerTokenFilter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aKeywordMarkerTokenFilter.ignoreCase(Boolean value) Iftrue, matching for thekeywordsandkeywords_pathparameters ignores letter case.Array of keywords.Array of keywords.keywordsPath(String value) Path to a file that contains a list of keywords.keywordsPattern(String value) Java regular expression used to match tokens.protected KeywordMarkerTokenFilter.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
-
ignoreCase
Iftrue, matching for thekeywordsandkeywords_pathparameters ignores letter case. Defaults tofalse.API name:
ignore_case -
keywords
Array of keywords. Tokens that match these keywords are not stemmed. This parameter,keywords_path, orkeywords_patternmust be specified. You cannot specify this parameter andkeywords_pattern.API name:
keywordsAdds all elements of
listtokeywords. -
keywords
Array of keywords. Tokens that match these keywords are not stemmed. This parameter,keywords_path, orkeywords_patternmust be specified. You cannot specify this parameter andkeywords_pattern.API name:
keywordsAdds one or more values to
keywords. -
keywordsPath
Path to a file that contains a list of keywords. Tokens that match these keywords are not stemmed. This path must be absolute or relative to theconfiglocation, and the file must be UTF-8 encoded. Each word in the file must be separated by a line break. This parameter,keywords, orkeywords_patternmust be specified. You cannot specify this parameter andkeywords_pattern.API name:
keywords_path -
keywordsPattern
Java regular expression used to match tokens. Tokens that match this expression are marked as keywords and not stemmed. This parameter,keywords, orkeywords_pathmust be specified. You cannot specify this parameter andkeywordsorkeywords_pattern.API name:
keywords_pattern -
self
- Specified by:
selfin classTokenFilterBase.AbstractBuilder<KeywordMarkerTokenFilter.Builder>
-
build
Builds aKeywordMarkerTokenFilter.- Specified by:
buildin interfaceObjectBuilder<KeywordMarkerTokenFilter>- Throws:
NullPointerException- if some of the required fields are null.
-