Class RescoreVector.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RescoreVector.Builder>
co.elastic.clients.elasticsearch._types.RescoreVector.Builder
- All Implemented Interfaces:
WithJson<RescoreVector.Builder>,ObjectBuilder<RescoreVector>
- Enclosing class:
- RescoreVector
public static class RescoreVector.Builder
extends WithJsonObjectBuilderBase<RescoreVector.Builder>
implements ObjectBuilder<RescoreVector>
Builder for
RescoreVector.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRescoreVector.final RescoreVector.Builderoversample(float value) Required - Applies the specified oversample factor to k on the approximate kNN searchprotected RescoreVector.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
-
oversample
Required - Applies the specified oversample factor to k on the approximate kNN searchAPI name:
oversample -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RescoreVector.Builder>
-
build
Builds aRescoreVector.- Specified by:
buildin interfaceObjectBuilder<RescoreVector>- Throws:
NullPointerException- if some of the required fields are null.
-