Class StandardAnalyzer.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<StandardAnalyzer.Builder>
co.elastic.clients.elasticsearch._types.analysis.StandardAnalyzer.Builder
- All Implemented Interfaces:
WithJson<StandardAnalyzer.Builder>,ObjectBuilder<StandardAnalyzer>
- Enclosing class:
- StandardAnalyzer
public static class StandardAnalyzer.Builder
extends WithJsonObjectBuilderBase<StandardAnalyzer.Builder>
implements ObjectBuilder<StandardAnalyzer>
Builder for
StandardAnalyzer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aStandardAnalyzer.final StandardAnalyzer.BuildermaxTokenLength(Integer value) The maximum token length.protected StandardAnalyzer.Builderself()final StandardAnalyzer.BuilderA pre-defined stop words list like_english_or an array containing a list of stop words.final StandardAnalyzer.BuilderA pre-defined stop words list like_english_or an array containing a list of stop words.final StandardAnalyzer.BuilderstopwordsPath(String value) The path to a file containing stop words.Methods 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
-
maxTokenLength
The maximum token length. If a token is seen that exceeds this length then it is split atmax_token_lengthintervals. Defaults to255.API name:
max_token_length -
stopwords
A pre-defined stop words list like_english_or an array containing a list of stop words. Defaults to_none_.API name:
stopwordsAdds all elements of
listtostopwords. -
stopwords
A pre-defined stop words list like_english_or an array containing a list of stop words. Defaults to_none_.API name:
stopwordsAdds one or more values to
stopwords. -
stopwordsPath
The path to a file containing stop words.API name:
stopwords_path -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<StandardAnalyzer.Builder>
-
build
Builds aStandardAnalyzer.- Specified by:
buildin interfaceObjectBuilder<StandardAnalyzer>- Throws:
NullPointerException- if some of the required fields are null.
-