Skip to content

Commit

Permalink
queryBatchAsync() overload
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Jun 28, 2024
1 parent 88216af commit c73d9ca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/io/qdrant/client/QdrantClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2782,6 +2782,22 @@ public ListenableFuture<List<ScoredPoint>> queryAsync(QueryPoints request, @Null
return Futures.transform(future, QueryResponse::getResultList, MoreExecutors.directExecutor());
}

/**
* Universally query points in batch.
* Covers all capabilities of search, recommend, discover, filters.
* Also enables hybrid and multi-stage queries.
*
* @param collectionName The name of the collection
* @param queries The queries to be performed in the batch.
* @return a new instance of {@link ListenableFuture}
*/
public ListenableFuture<List<BatchResult>> queryBatchAsync(
String collectionName,
List<QueryPoints> queries
) {
return queryBatchAsync(collectionName, queries, null, null);
}

/**
* Universally query points in batch.
* Covers all capabilities of search, recommend, discover, filters.
Expand Down

0 comments on commit c73d9ca

Please sign in to comment.