Class CompletionProperty.Builder
java.lang.Object
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:
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
Methods inherited from class co.elastic.clients.elasticsearch._types.mapping.DocValuesPropertyBase.AbstractBuilder
docValues
Methods inherited from class co.elastic.clients.elasticsearch._types.mapping.CorePropertyBase.AbstractBuilder
addCopyTo, copyTo, copyTo, similarity, store
Methods inherited from class co.elastic.clients.elasticsearch._types.mapping.PropertyBase.AbstractBuilder
dynamic, fields, fields, ignoreAbove, localMetadata, meta, name, properties, properties, putFields, putFields, putLocalMetadata, putMeta, putProperties, putProperties
Methods 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:contexts
-
contexts
API name:contexts
-
addContexts
Add a value tocontexts(List)
, creating the list if needed. -
contexts
public CompletionProperty.Builder contexts(java.util.function.Function<SuggestContext.Builder,ObjectBuilder<SuggestContext>> fn)Setcontexts(List)
to a singleton list. -
addContexts
public CompletionProperty.Builder addContexts(java.util.function.Function<SuggestContext.Builder,ObjectBuilder<SuggestContext>> fn)Add a value tocontexts(List)
, creating the list if needed. -
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:
self
in classPropertyBase.AbstractBuilder<CompletionProperty.Builder>
-
build
Builds aCompletionProperty
.- Specified by:
build
in interfaceObjectBuilder<CompletionProperty>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-