tests: Change get_document_by_filter to fetch_documents

This commit is contained in:
Louis Dureuil 2025-03-03 16:53:05 +01:00
parent f292fc9ac0
commit 21c3b3957e
No known key found for this signature in database
3 changed files with 15 additions and 20 deletions

View file

@ -411,7 +411,7 @@ impl<State> Index<'_, State> {
self.service.get(url).await
}
pub async fn get_document_by_filter(&self, payload: Value) -> (Value, StatusCode) {
pub async fn fetch_documents(&self, payload: Value) -> (Value, StatusCode) {
let url = format!("/indexes/{}/documents/fetch", urlencode(self.uid.as_ref()));
self.service.post(url, payload).await
}