Class StopTokenFilter.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.analysis.TokenFilterBase.AbstractBuilder<StopTokenFilter.Builder>
-
- org.opensearch.client.opensearch._types.analysis.StopTokenFilter.Builder
-
- All Implemented Interfaces:
ObjectBuilder<StopTokenFilter>
- Enclosing class:
- StopTokenFilter
public static class StopTokenFilter.Builder extends TokenFilterBase.AbstractBuilder<StopTokenFilter.Builder> implements ObjectBuilder<StopTokenFilter>
Builder forStopTokenFilter
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StopTokenFilter
build()
Builds aStopTokenFilter
.StopTokenFilter.Builder
ignoreCase(java.lang.Boolean value)
API name:ignore_case
StopTokenFilter.Builder
removeTrailing(java.lang.Boolean value)
API name:remove_trailing
protected StopTokenFilter.Builder
self()
StopTokenFilter.Builder
stopwords(java.lang.String value, java.lang.String... values)
Required - API name:stopwords
StopTokenFilter.Builder
stopwords(java.util.List<java.lang.String> list)
Required - API name:stopwords
StopTokenFilter.Builder
stopwordsPath(java.lang.String value)
API name:stopwords_path
-
Methods inherited from class org.opensearch.client.opensearch._types.analysis.TokenFilterBase.AbstractBuilder
version
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
ignoreCase
public final StopTokenFilter.Builder ignoreCase(@Nullable java.lang.Boolean value)
API name:ignore_case
-
removeTrailing
public final StopTokenFilter.Builder removeTrailing(@Nullable java.lang.Boolean value)
API name:remove_trailing
-
stopwords
public final StopTokenFilter.Builder stopwords(java.util.List<java.lang.String> list)
Required - API name:stopwords
Adds all elements of
list
tostopwords
.
-
stopwords
public final StopTokenFilter.Builder stopwords(java.lang.String value, java.lang.String... values)
Required - API name:stopwords
Adds one or more values to
stopwords
.
-
stopwordsPath
public final StopTokenFilter.Builder stopwordsPath(@Nullable java.lang.String value)
API name:stopwords_path
-
self
protected StopTokenFilter.Builder self()
- Specified by:
self
in classTokenFilterBase.AbstractBuilder<StopTokenFilter.Builder>
-
build
public StopTokenFilter build()
Builds aStopTokenFilter
.- Specified by:
build
in interfaceObjectBuilder<StopTokenFilter>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-