Class CustomAnalyzer.Builder
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.CustomAnalyzer.Builder
- All Implemented Interfaces:
ObjectBuilder<CustomAnalyzer>
- Enclosing class:
- CustomAnalyzer
public static class CustomAnalyzer.Builder extends java.lang.Object implements ObjectBuilder<CustomAnalyzer>
Builder for
CustomAnalyzer.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CustomAnalyzer.BuilderaddCharFilter(java.lang.String value)Add a value tocharFilter(List), creating the list if needed.CustomAnalyzer.BuilderaddFilter(java.lang.String value)Add a value tofilter(List), creating the list if needed.CustomAnalyzerbuild()Builds aCustomAnalyzer.CustomAnalyzer.BuildercharFilter(java.lang.String... value)API name:char_filterCustomAnalyzer.BuildercharFilter(java.util.List<java.lang.String> value)API name:char_filterCustomAnalyzer.Builderfilter(java.lang.String... value)API name:filterCustomAnalyzer.Builderfilter(java.util.List<java.lang.String> value)API name:filterCustomAnalyzer.BuilderpositionIncrementGap(java.lang.Integer value)API name:position_increment_gapCustomAnalyzer.BuilderpositionOffsetGap(java.lang.Integer value)API name:position_offset_gapCustomAnalyzer.Buildertokenizer(java.lang.String value)Required - API name:tokenizerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
charFilter
API name:char_filter -
charFilter
API name:char_filter -
addCharFilter
Add a value tocharFilter(List), creating the list if needed. -
filter
API name:filter -
filter
API name:filter -
addFilter
Add a value tofilter(List), creating the list if needed. -
positionIncrementGap
API name:position_increment_gap -
positionOffsetGap
API name:position_offset_gap -
tokenizer
Required - API name:tokenizer -
build
Builds aCustomAnalyzer.- Specified by:
buildin interfaceObjectBuilder<CustomAnalyzer>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-