Uses of Class
com.datastax.astra.client.collections.commands.options.CollectionFindAndRerankOptions
Packages that use CollectionFindAndRerankOptions
Package
Description
Top package to interact with Collections
Objects representing cursors working with find collection commands.
Options and Inputs for Collections commands.
-
Uses of CollectionFindAndRerankOptions in com.datastax.astra.client.collections
Methods in com.datastax.astra.client.collections with parameters of type CollectionFindAndRerankOptionsModifier and TypeMethodDescriptionCollection.findAndRerank
(CollectionFindAndRerankOptions options) Finds and reranks all documents in the collection using the specified options.Collection.findAndRerank
(Filter filter, CollectionFindAndRerankOptions options) Finds and reranks documents in the collection that match the given filter using the specified options.<R> CollectionFindAndRerankCursor
<T, R> Collection.findAndRerank
(Filter filter, CollectionFindAndRerankOptions options, Class<R> newRowType) Finds and reranks documents in the collection that match the given filter using the specified options, mapping the resulting documents to the specified target type.<R> Page
<RerankedResult<R>> Collection.findAndRerankPage
(Filter filter, CollectionFindAndRerankOptions options, Class<R> newRowType) Finds and reranks documents in the collection using the given filter and options, and returns a paginated result containing reranked items mapped to the specified result type. -
Uses of CollectionFindAndRerankOptions in com.datastax.astra.client.collections.commands.cursor
Constructors in com.datastax.astra.client.collections.commands.cursor with parameters of type CollectionFindAndRerankOptionsModifierConstructorDescriptionCollectionFindAndRerankCursor
(Collection<T> dataSource, Filter filter, CollectionFindAndRerankOptions options, Class<R> recordType) Cursor to iterate on the result of a query. -
Uses of CollectionFindAndRerankOptions in com.datastax.astra.client.collections.commands.options
Methods in com.datastax.astra.client.collections.commands.options that return CollectionFindAndRerankOptionsModifier and TypeMethodDescriptionCollectionFindAndRerankOptions.hybridLimits
(int hybridLimits) Add a hybridLimits clause in the find blockCollectionFindAndRerankOptions.hybridLimits
(Map<String, Integer> hybridMapLimits) Add a hybridLimits clause in the find blockCollectionFindAndRerankOptions.hybridSort
(Hybrid hybrid) Adding this on top of sort(Sort[] s) to allow for a more fluent API.CollectionFindAndRerankOptions.limit
(int limit) Add a limit clause in the find blockCollectionFindAndRerankOptions.projection
(Projection... p) Adding this on top of projection(Projection[] p) to allow for a more fluent API.Add a rerankOn clause in the find blockCollectionFindAndRerankOptions.rerankQuery
(String rerankQuery) Add a rerankQuery clause in the find blockAdding this on top of sort(Sort[] s) to allow for a more fluent API.