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 VectorSearchOperationVectorSearchOperation.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 aMatchOperationstage targeting the score field name.VectorSearchOperation.withSearchScore()Add aAddFieldsOperationstage including the search score usingscoreas field name.VectorSearchOperation.withSearchScore(String scoreFieldName) Add aAddFieldsOperationstage including the search score usingscoreFieldNameas field name.