Package com.mongodb.client.model.search
Interface VectorSearchOperator
- All Superinterfaces:
Bson,SearchOperator
A
SearchOperator that performs vector search within the $search pipeline stage.- Since:
- 5.8
- MongoDB Atlas documentation
- Search operators
-
Field Summary
Fields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY -
Method Summary
Modifier and TypeMethodDescriptionfilter(SearchOperator filter) Creates a newVectorSearchOperatorwith the filter specified.score(SearchScore modifier) Creates a newVectorSearchOperatorwith the scoring modifier specified.Methods inherited from interface org.bson.conversions.Bson
toBsonDocument, toBsonDocument
-
Method Details
-
filter
Creates a newVectorSearchOperatorwith the filter specified.- Parameters:
filter- A search operator to filter documents.- Returns:
- A new
VectorSearchOperator.
-
score
Creates a newVectorSearchOperatorwith the scoring modifier specified.- Specified by:
scorein interfaceSearchOperator- Parameters:
modifier- The scoring modifier.- Returns:
- A new
VectorSearchOperator.
-