multi-search: Add test server search method for multi search

This commit is contained in:
Louis Dureuil 2023-02-06 13:41:37 +01:00
parent a23fbf6c7b
commit 3ba5dfb6ec
No known key found for this signature in database

View File

@ -103,6 +103,10 @@ impl Server {
Index { uid: uid.as_ref().to_string(), service: &self.service, encoder }
}
pub async fn multi_search(&self, queries: Value) -> (Value, StatusCode) {
self.service.post("/multi-search", queries).await
}
pub async fn list_indexes_raw(&self, parameters: &str) -> (Value, StatusCode) {
self.service.get(format!("/indexes{parameters}")).await
}