fix all the array on the search get route and improve the tests

This commit is contained in:
Tamo 2022-06-22 12:33:15 +02:00
parent eb8d53a915
commit c47369b502
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
6 changed files with 50 additions and 52 deletions

View file

@ -221,7 +221,7 @@ impl Index<'_> {
}
pub async fn search_get(&self, query: Value) -> (Value, StatusCode) {
let params = serde_url_params::to_string(&query).unwrap();
let params = yaup::to_string(&query).unwrap();
let url = format!("/indexes/{}/search?{}", encode(self.uid.as_ref()), params);
self.service.get(url).await
}