Class CustomAnalyzer.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.analysis.CustomAnalyzer.Builder
- All Implemented Interfaces:
CopyableBuilder<CustomAnalyzer.Builder,,CustomAnalyzer> MutableBuilder<CustomAnalyzer.Builder,,CustomAnalyzer> ObjectBuilder<CustomAnalyzer>
- Enclosing class:
CustomAnalyzer
public static class CustomAnalyzer.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CustomAnalyzer.Builder,CustomAnalyzer>
Builder for
CustomAnalyzer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCustomAnalyzer.final CustomAnalyzer.BuildercharFilter(String value, String... values) API name:char_filterfinal CustomAnalyzer.BuildercharFilter(List<String> list) API name:char_filtercopy()Create a new builderCopyableBuilderthat is a copy of this one.final CustomAnalyzer.BuilderAPI name:filterfinal CustomAnalyzer.BuilderAPI name:filterfinal CustomAnalyzer.BuilderpositionIncrementGap(Integer value) API name:position_increment_gapfinal CustomAnalyzer.BuilderpositionOffsetGap(Integer value) API name:position_offset_gapfinal CustomAnalyzer.BuilderRequired - API name:tokenizerMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<CustomAnalyzer.Builder,CustomAnalyzer> - Returns:
- a new builder instance.
-
charFilter
API name:char_filterAdds all elements of
listtocharFilter. -
charFilter
API name:char_filterAdds one or more values to
charFilter. -
filter
API name:filterAdds all elements of
listtofilter. -
filter
API name:filterAdds one or more values to
filter. -
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:
NullPointerException- if some of the required fields are null.
-