Package com.ibm.cloud.cloudant.v1.model
Class AnalyzerConfiguration.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.AnalyzerConfiguration.Builder
-
- Enclosing class:
- AnalyzerConfiguration
public static class AnalyzerConfiguration.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyzerConfiguration.Builder
addStopwords(String stopwords)
Adds an stopwords to stopwords.AnalyzerConfiguration
build()
Builds a AnalyzerConfiguration.AnalyzerConfiguration.Builder
fields(Map<String,Analyzer> fields)
Set the fields.AnalyzerConfiguration.Builder
name(String name)
Set the name.AnalyzerConfiguration.Builder
stopwords(List<String> stopwords)
Set the stopwords.
-
-
-
Method Detail
-
build
public AnalyzerConfiguration build()
Builds a AnalyzerConfiguration.- Returns:
- the new AnalyzerConfiguration instance
-
addStopwords
public AnalyzerConfiguration.Builder addStopwords(String stopwords)
Adds an stopwords to stopwords.- Parameters:
stopwords
- the new stopwords- Returns:
- the AnalyzerConfiguration builder
-
name
public AnalyzerConfiguration.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the AnalyzerConfiguration builder
-
stopwords
public AnalyzerConfiguration.Builder stopwords(List<String> stopwords)
Set the stopwords. Existing stopwords will be replaced.- Parameters:
stopwords
- the stopwords- Returns:
- the AnalyzerConfiguration builder
-
fields
public AnalyzerConfiguration.Builder fields(Map<String,Analyzer> fields)
Set the fields.- Parameters:
fields
- the fields- Returns:
- the AnalyzerConfiguration builder
-
-