public class VectorQuery extends Object
Modifier and Type | Method and Description |
---|---|
VectorQuery |
boost(double boost)
Can be used to control how much weight to give the results of this query vs other queries.
|
static VectorQuery |
create(String vectorField,
float[] vector) |
static VectorQuery |
create(String vectorField,
String base64EncodedVector) |
VectorQuery |
numCandidates(int numCandidates)
This is the number of results that will be returned from this vector query.
|
com.couchbase.client.core.api.search.vector.CoreVectorQuery |
toCore() |
@SinceCouchbase(value="7.6") public static VectorQuery create(String vectorField, float[] vector)
vectorField
- the document field that contains the vector.vector
- the vector to search for.@SinceCouchbase(value="7.6.2") public static VectorQuery create(String vectorField, String base64EncodedVector)
vectorField
- the document field that contains the vector.base64EncodedVector
- the vector to search for, as a Base64-encoded sequence of little-endian IEEE 754 floats.public VectorQuery numCandidates(int numCandidates)
public VectorQuery boost(double boost)
See the FTS documentation for details.
@Stability.Internal public com.couchbase.client.core.api.search.vector.CoreVectorQuery toCore()
Copyright © 2024 Couchbase, Inc.. All rights reserved.