Class CompletionContext.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CompletionContext.Builder>
co.elastic.clients.elasticsearch.core.search.CompletionContext.Builder
- All Implemented Interfaces:
WithJson<CompletionContext.Builder>,ObjectBuilder<CompletionContext>
- Enclosing class:
- CompletionContext
public static class CompletionContext.Builder
extends WithJsonObjectBuilderBase<CompletionContext.Builder>
implements ObjectBuilder<CompletionContext>
Builder for
CompletionContext.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAPI name:boostbuild()Builds aCompletionContext.Required - API name:contextRequired - API name:contextneighbours(GeoHashPrecision value, GeoHashPrecision... values) API name:neighboursAPI name:neighboursneighbours(List<GeoHashPrecision> list) API name:neighboursprecision(GeoHashPrecision value) API name:precisionAPI name:precisionAPI name:prefixprotected CompletionContext.Builderself()Methods 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
-
boost
API name:boost -
context
Required - API name:context -
context
Required - API name:context -
neighbours
API name:neighboursAdds all elements of
listtoneighbours. -
neighbours
public final CompletionContext.Builder neighbours(GeoHashPrecision value, GeoHashPrecision... values) API name:neighboursAdds one or more values to
neighbours. -
neighbours
public final CompletionContext.Builder neighbours(Function<GeoHashPrecision.Builder, ObjectBuilder<GeoHashPrecision>> fn) API name:neighboursAdds a value to
neighboursusing a builder lambda. -
precision
API name:precision -
precision
public final CompletionContext.Builder precision(Function<GeoHashPrecision.Builder, ObjectBuilder<GeoHashPrecision>> fn) API name:precision -
prefix
API name:prefix -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CompletionContext.Builder>
-
build
Builds aCompletionContext.- Specified by:
buildin interfaceObjectBuilder<CompletionContext>- Throws:
NullPointerException- if some of the required fields are null.
-