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 Constructor Description Builder() -
Method Summary
Methods 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
-
boost
API name:boost -
context
Required - API name:context -
context
public final CompletionContext.Builder context(java.util.function.Function<Context.Builder,ObjectBuilder<Context>> fn)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(java.util.function.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(java.util.function.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:
java.lang.NullPointerException- if some of the required fields are null.
-