Class CompletionProperty.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.mapping.PropertyBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.mapping.CorePropertyBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.mapping.DocValuesPropertyBase.AbstractBuilder<CompletionProperty.Builder>
co.elastic.clients.elasticsearch._types.mapping.CompletionProperty.Builder
- All Implemented Interfaces:
WithJson<CompletionProperty.Builder>,ObjectBuilder<CompletionProperty>
- Enclosing class:
- CompletionProperty
public static class CompletionProperty.Builder extends DocValuesPropertyBase.AbstractBuilder<CompletionProperty.Builder> implements ObjectBuilder<CompletionProperty>
Builder for
CompletionProperty.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CompletionProperty.Builderanalyzer(java.lang.String value)API name:analyzerCompletionPropertybuild()Builds aCompletionProperty.CompletionProperty.Buildercontexts(SuggestContext value, SuggestContext... values)API name:contextsCompletionProperty.Buildercontexts(java.util.function.Function<SuggestContext.Builder,ObjectBuilder<SuggestContext>> fn)API name:contextsCompletionProperty.Buildercontexts(java.util.List<SuggestContext> list)API name:contextsCompletionProperty.BuildermaxInputLength(java.lang.Integer value)API name:max_input_lengthCompletionProperty.BuilderpreservePositionIncrements(java.lang.Boolean value)API name:preserve_position_incrementsCompletionProperty.BuilderpreserveSeparators(java.lang.Boolean value)API name:preserve_separatorsCompletionProperty.BuildersearchAnalyzer(java.lang.String value)API name:search_analyzerprotected CompletionProperty.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.mapping.DocValuesPropertyBase.AbstractBuilder
docValuesMethods inherited from class co.elastic.clients.elasticsearch._types.mapping.CorePropertyBase.AbstractBuilder
copyTo, copyTo, similarity, storeMethods inherited from class co.elastic.clients.elasticsearch._types.mapping.PropertyBase.AbstractBuilder
dynamic, fields, fields, fields, ignoreAbove, localMetadata, localMetadata, meta, meta, properties, properties, propertiesMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
analyzer
API name:analyzer -
contexts
API name:contextsAdds all elements of
listtocontexts. -
contexts
API name:contextsAdds one or more values to
contexts. -
contexts
public final CompletionProperty.Builder contexts(java.util.function.Function<SuggestContext.Builder,ObjectBuilder<SuggestContext>> fn)API name:contextsAdds a value to
contextsusing a builder lambda. -
maxInputLength
API name:max_input_length -
preservePositionIncrements
public final CompletionProperty.Builder preservePositionIncrements(@Nullable java.lang.Boolean value)API name:preserve_position_increments -
preserveSeparators
API name:preserve_separators -
searchAnalyzer
API name:search_analyzer -
self
- Specified by:
selfin classPropertyBase.AbstractBuilder<CompletionProperty.Builder>
-
build
Builds aCompletionProperty.- Specified by:
buildin interfaceObjectBuilder<CompletionProperty>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-