Class KeepWordsTokenFilter.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase.AbstractBuilder<KeepWordsTokenFilter.Builder>
co.elastic.clients.elasticsearch._types.analysis.KeepWordsTokenFilter.Builder
- All Implemented Interfaces:
WithJson<KeepWordsTokenFilter.Builder>,ObjectBuilder<KeepWordsTokenFilter>
- Enclosing class:
- KeepWordsTokenFilter
public static class KeepWordsTokenFilter.Builder
extends TokenFilterBase.AbstractBuilder<KeepWordsTokenFilter.Builder>
implements ObjectBuilder<KeepWordsTokenFilter>
Builder for
KeepWordsTokenFilter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aKeepWordsTokenFilter.List of words to keep.List of words to keep.keepWordsCase(Boolean value) Iftrue, lowercase all keep words.keepWordsPath(String value) Path to a file that contains a list of words to keep.protected KeepWordsTokenFilter.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
-
keepWords
List of words to keep. Only tokens that match words in this list are included in the output. Either this parameter orkeep_words_pathmust be specified.API name:
keep_wordsAdds all elements of
listtokeepWords. -
keepWords
List of words to keep. Only tokens that match words in this list are included in the output. Either this parameter orkeep_words_pathmust be specified.API name:
keep_wordsAdds one or more values to
keepWords. -
keepWordsCase
Iftrue, lowercase all keep words. Defaults tofalse.API name:
keep_words_case -
keepWordsPath
Path to a file that contains a list of words to keep. Only tokens that match words in this list are included in the output. 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. Either this parameter orkeep_wordsmust be specified.API name:
keep_words_path -
self
- Specified by:
selfin classTokenFilterBase.AbstractBuilder<KeepWordsTokenFilter.Builder>
-
build
Builds aKeepWordsTokenFilter.- Specified by:
buildin interfaceObjectBuilder<KeepWordsTokenFilter>- Throws:
NullPointerException- if some of the required fields are null.
-