Uses of Class
org.springframework.data.mongodb.core.aggregation.VectorSearchOperation
Packages that use VectorSearchOperation
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of VectorSearchOperation in org.springframework.data.mongodb.core.aggregation
Methods in org.springframework.data.mongodb.core.aggregation that return VectorSearchOperationModifier and TypeMethodDescriptionVectorSearchOperation.filter
(org.bson.Document filter) Criteria expression that compares an indexed field with a boolean, date, objectId, number (not decimals), string, or UUID to use as a pre-filter.VectorSearchOperation.filter
(CriteriaDefinition filter) Criteria expression that compares an indexed field with a boolean, date, objectId, number (not decimals), string, or UUID to use as a pre-filter.default VectorSearchOperation
VectorSearchOperation.LimitContributor.limit
(int limit) Number (of type int only) of documents to return in the results.Number (of type int only) of documents to return in the results.VectorSearchOperation.numCandidates
(int numCandidates) Number of nearest neighbors to use during the search.VectorSearchOperation.searchType
(VectorSearchOperation.SearchType searchType) Configure the search type to use.VectorSearchOperation.withFilterBySore
(Consumer<Criteria> score) Add aMatchOperation
stage targeting the score field name.VectorSearchOperation.withSearchScore()
Add aAddFieldsOperation
stage including the search score usingscore
as field name.VectorSearchOperation.withSearchScore
(String scoreFieldName) Add aAddFieldsOperation
stage including the search score usingscoreFieldName
as field name.