Add more tests

This commit is contained in:
Clément Renault
2023-06-28 11:31:52 +02:00
parent 32f2556d22
commit 362e9ff845
3 changed files with 98 additions and 0 deletions

View File

@@ -377,6 +377,11 @@ impl Index<'_> {
self.service.get(url).await
}
pub async fn facet_search(&self, query: Value) -> (Value, StatusCode) {
let url = format!("/indexes/{}/facet-search", urlencode(self.uid.as_ref()));
self.service.post_encoded(url, query, self.encoder).await
}
pub async fn update_distinct_attribute(&self, value: Value) -> (Value, StatusCode) {
let url =
format!("/indexes/{}/settings/{}", urlencode(self.uid.as_ref()), "distinct-attribute");