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 -
Method Summary
Modifier and TypeMethodDescriptionAPI name:analyzerbuild()Builds aCompletionProperty.contexts(SuggestContext value, SuggestContext... values) API name:contextsAPI name:contextscontexts(List<SuggestContext> list) API name:contextsmaxInputLength(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 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, 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, _mapPutAll
-
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(Function<SuggestContext.Builder, ObjectBuilder<SuggestContext>> fn) API name:contextsAdds a value to
contextsusing a builder lambda. -
maxInputLength
API name:max_input_length -
preservePositionIncrements
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:
NullPointerException- if some of the required fields are null.
-