Module spring.data.mongodb
Interface VectorSearchOperation.VectorContributor
- Enclosing class:
- VectorSearchOperation
public static interface VectorSearchOperation.VectorContributor
Fluent API to configure a vector on the VectorSearchOperation builder.
-
Method Summary
Modifier and TypeMethodDescriptionvector(byte[] vector) Array of byte numbers that represent the query vector.vector(double... vector) Array of double numbers that represent the query vector.vector(float... vector) Array of float numbers that represent the query vector.Array of numbers that represent the query vector.vector(org.bson.BinaryVector vector) Binary vector (BSON BinData vector subtype float32, or BSON BinData vector subtype int1 or int8 type) that represent the query vector.The query vector.
-
Method Details
-
vector
Array of float numbers that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.- Parameters:
vector- the query vector.- Returns:
-
vector
Array of byte numbers that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.- Parameters:
vector- the query vector.- Returns:
-
vector
Array of double numbers that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.- Parameters:
vector- the query vector.- Returns:
-
vector
@Contract("_ -> this") default VectorSearchOperation.LimitContributor vector(List<? extends Number> vector) Array of numbers that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.- Parameters:
vector- the query vector.- Returns:
-
vector
@Contract("_ -> this") default VectorSearchOperation.LimitContributor vector(org.bson.BinaryVector vector) Binary vector (BSON BinData vector subtype float32, or BSON BinData vector subtype int1 or int8 type) that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.- Parameters:
vector- the query vector.- Returns:
-
vector
The query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.- Parameters:
vector- the query vector.- Returns:
-