mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
implement clear all documents
This commit is contained in:
parent
fa7379e129
commit
a8ba809656
5 changed files with 35 additions and 3 deletions
|
@ -128,6 +128,9 @@ pub trait IndexController {
|
|||
data: &[u8],
|
||||
) -> anyhow::Result<UpdateStatus>;
|
||||
|
||||
/// Clear all documents in the given index.
|
||||
fn clear_documents(&self, index: impl AsRef<str>) -> anyhow::Result<UpdateStatus>;
|
||||
|
||||
/// Updates an index settings. If the index does not exist, it will be created when the update
|
||||
/// is applied to the index.
|
||||
fn update_settings<S: AsRef<str>>(&self, index_uid: S, settings: Settings) -> anyhow::Result<UpdateStatus>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue