mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
implement the snapshots on demand
This commit is contained in:
parent
e9b62aacb3
commit
e8c9367686
6 changed files with 144 additions and 0 deletions
|
@ -156,6 +156,10 @@ impl Server {
|
|||
self.service.post("/dumps", json!(null)).await
|
||||
}
|
||||
|
||||
pub async fn create_snapshot(&self) -> (Value, StatusCode) {
|
||||
self.service.post("/snapshots", json!(null)).await
|
||||
}
|
||||
|
||||
pub async fn index_swap(&self, value: Value) -> (Value, StatusCode) {
|
||||
self.service.post("/swap-indexes", value).await
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue