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