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 ce07805 commit 71bcd3eCopy full SHA for 71bcd3e
src/search.rs
@@ -577,4 +577,17 @@ mod tests {
577
578
client.delete_index("test_query_matches").await.unwrap();
579
}
580
+
581
+ #[async_test]
582
+ async fn test_phrase_search() {
583
+ let client = Client::new("http://localhost:7700", "masterKey");
584
+ let index = setup_test_index(&client, "test_phrase_search").await;
585
586
+ let mut query = Query::new(&index);
587
+ query.with_query("harry \"of Fire\"");
588
+ let results: SearchResults<Document> = index.execute_query(&query).await.unwrap();
589
+ assert_eq!(results.hits.len(), 1);
590
591
+ client.delete_index("test_phrase_search").await.unwrap();
592
+ }
593
0 commit comments