Class StopTokenFilter.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase.AbstractBuilder<StopTokenFilter.Builder>
co.elastic.clients.elasticsearch._types.analysis.StopTokenFilter.Builder
- All Implemented Interfaces:
WithJson<StopTokenFilter.Builder>,ObjectBuilder<StopTokenFilter>
- Enclosing class:
- StopTokenFilter
public static class StopTokenFilter.Builder
extends TokenFilterBase.AbstractBuilder<StopTokenFilter.Builder>
implements ObjectBuilder<StopTokenFilter>
Builder for
StopTokenFilter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aStopTokenFilter.final StopTokenFilter.BuilderignoreCase(Boolean value) Iftrue, stop word matching is case insensitive.final StopTokenFilter.BuilderremoveTrailing(Boolean value) Iftrue, the last token of a stream is removed if it’s a stop word.protected StopTokenFilter.Builderself()final StopTokenFilter.BuilderLanguage value, such as_arabic_or_thai_.final StopTokenFilter.BuilderLanguage value, such as_arabic_or_thai_.final StopTokenFilter.BuilderstopwordsPath(String value) Path to a file that contains a list of stop words to remove.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, stop word matching is case insensitive. For example, iftrue, a stop word of the matches and removesThe,THE, orthe. Defaults tofalse.API name:
ignore_case -
removeTrailing
Iftrue, the last token of a stream is removed if it’s a stop word. Defaults totrue.API name:
remove_trailing -
stopwords
Language value, such as_arabic_or_thai_. Defaults to_english_.API name:
stopwordsAdds all elements of
listtostopwords. -
stopwords
Language value, such as_arabic_or_thai_. Defaults to_english_.API name:
stopwordsAdds one or more values to
stopwords. -
stopwordsPath
Path to a file that contains a list of stop words to remove. This path must be absolute or relative to theconfiglocation, and the file must be UTF-8 encoded. Each stop word in the file must be separated by a line break.API name:
stopwords_path -
self
- Specified by:
selfin classTokenFilterBase.AbstractBuilder<StopTokenFilter.Builder>
-
build
Builds aStopTokenFilter.- Specified by:
buildin interfaceObjectBuilder<StopTokenFilter>- Throws:
NullPointerException- if some of the required fields are null.
-