Class DenseVectorIndexOptionsRescoreVector.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DenseVectorIndexOptionsRescoreVector.Builder>
co.elastic.clients.elasticsearch._types.mapping.DenseVectorIndexOptionsRescoreVector.Builder
- All Implemented Interfaces:
WithJson<DenseVectorIndexOptionsRescoreVector.Builder>,ObjectBuilder<DenseVectorIndexOptionsRescoreVector>
- Enclosing class:
- DenseVectorIndexOptionsRescoreVector
public static class DenseVectorIndexOptionsRescoreVector.Builder
extends WithJsonObjectBuilderBase<DenseVectorIndexOptionsRescoreVector.Builder>
implements ObjectBuilder<DenseVectorIndexOptionsRescoreVector>
Builder for
DenseVectorIndexOptionsRescoreVector.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDenseVectorIndexOptionsRescoreVector.oversample(float value) Required - The oversampling factor to use when searching for the nearest neighbor.self()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 - The oversampling factor to use when searching for the nearest neighbor. This is only applicable to the quantized formats:bbq_*,int4_*, andint8_*. When provided,oversample * kvectors will be gathered and then their scores will be re-computed with the original vectors.valid values are between
1.0and10.0(inclusive), or0exactly to disable oversampling.API name:
oversample -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DenseVectorIndexOptionsRescoreVector.Builder>
-
build
Builds aDenseVectorIndexOptionsRescoreVector.- Specified by:
buildin interfaceObjectBuilder<DenseVectorIndexOptionsRescoreVector>- Throws:
NullPointerException- if some of the required fields are null.
-