Class CompletionProperty.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.mapping.PropertyBase.AbstractBuilder<CompletionProperty.Builder>
org.opensearch.client.opensearch._types.mapping.CorePropertyBase.AbstractBuilder<CompletionProperty.Builder>
org.opensearch.client.opensearch._types.mapping.DocValuesPropertyBase.AbstractBuilder<CompletionProperty.Builder>
org.opensearch.client.opensearch._types.mapping.CompletionProperty.Builder
- All Implemented Interfaces:
CopyableBuilder<CompletionProperty.Builder,,CompletionProperty> MutableBuilder<CompletionProperty.Builder,,CompletionProperty> ObjectBuilder<CompletionProperty>
- Enclosing class:
CompletionProperty
public static class CompletionProperty.Builder
extends DocValuesPropertyBase.AbstractBuilder<CompletionProperty.Builder>
implements CopyableBuilder<CompletionProperty.Builder,CompletionProperty>
Builder for
CompletionProperty.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAPI name:analyzerbuild()Builds aCompletionProperty.API name:contextscontexts(List<SuggestContext> list) API name:contextscontexts(SuggestContext value, SuggestContext... values) API name:contextscopy()Create a new builderCopyableBuilderthat is a copy of this one.maxInputLength(Integer value) API name:max_input_lengthAPI name:preserve_position_incrementspreserveSeparators(Boolean value) API name:preserve_separatorssearchAnalyzer(String value) API name:search_analyzerprotected CompletionProperty.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.mapping.DocValuesPropertyBase.AbstractBuilder
docValuesMethods inherited from class org.opensearch.client.opensearch._types.mapping.CorePropertyBase.AbstractBuilder
copyTo, copyTo, similarity, storeMethods inherited from class org.opensearch.client.opensearch._types.mapping.PropertyBase.AbstractBuilder
dynamic, fields, fields, fields, ignoreAbove, meta, meta, properties, properties, propertiesMethods 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<CompletionProperty.Builder,CompletionProperty> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classPropertyBase.AbstractBuilder<CompletionProperty.Builder>
-
analyzer
API name:analyzer -
contexts
API name:contextsAdds all elements of
listtocontexts. -
contexts
@Nonnull public final CompletionProperty.Builder contexts(SuggestContext value, SuggestContext... values) API name:contextsAdds one or more values to
contexts. -
contexts
@Nonnull public final CompletionProperty.Builder contexts(Function<SuggestContext.Builder, ObjectBuilder<SuggestContext>> fn) API name:contextsAdds a value to
contextsusing a builder lambda. -
maxInputLength
API name:max_input_length -
preservePositionIncrements
@Nonnull public final CompletionProperty.Builder preservePositionIncrements(@Nullable Boolean value) API name:preserve_position_increments -
preserveSeparators
API name:preserve_separators -
searchAnalyzer
API name:search_analyzer -
build
Builds aCompletionProperty.- Specified by:
buildin interfaceObjectBuilder<CompletionProperty>- Throws:
NullPointerException- if some of the required fields are null.
-