We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9777f commit 710b22cCopy full SHA for 710b22c
src/similar.rs
@@ -399,4 +399,16 @@ mod tests {
399
assert!(results.hits.is_empty());
400
Ok(())
401
}
402
+
403
+ #[meilisearch_test]
404
+ async fn test_query_retrieve_vectors(client: Client, index: Index) -> Result<(), Error> {
405
+ setup_embedder(&client, &index).await?;
406
+ setup_test_index(&client, &index).await?;
407
408
+ let mut query = SimilarQuery::new(&index, "1", "default");
409
+ query.with_retrieve_vectors(true);
410
+ let results: SimilarResults<Document> = query.execute().await?;
411
+ assert!(results.hits[0].result._vectors.is_some());
412
+ Ok(())
413
+ }
414
0 commit comments