This commit is contained in:
Quentin de Quelen 2025-07-03 09:18:22 +12:00 committed by GitHub
commit 068d251ac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 308 additions and 0 deletions

View file

@ -467,6 +467,11 @@ impl<State> Index<'_, State> {
self.service.get(url).await
}
pub async fn fields(&self) -> (Value, StatusCode) {
let url = format!("/indexes/{}/fields", urlencode(self.uid.as_ref()));
self.service.get(url).await
}
/// Performs both GET and POST search queries
pub async fn search(
&self,