mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
implements the index deletion, creation and swap
This commit is contained in:
parent
fa27485070
commit
b1f0431ab4
4 changed files with 70 additions and 7 deletions
|
@ -5,9 +5,9 @@ use crate::index;
|
|||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("Index `{}` not found", .0)]
|
||||
#[error("Index `{0}` not found")]
|
||||
IndexNotFound(String),
|
||||
#[error("Index `{}` already exists", .0)]
|
||||
#[error("Index `{0}` already exists")]
|
||||
IndexAlreadyExists(String),
|
||||
#[error("Corrupted task queue.")]
|
||||
CorruptedTaskQueue,
|
||||
|
@ -17,6 +17,8 @@ pub enum Error {
|
|||
Milli(#[from] milli::Error),
|
||||
#[error("{0}")]
|
||||
IndexError(#[from] index::error::IndexError),
|
||||
#[error(transparent)]
|
||||
IoError(#[from] std::io::Error),
|
||||
|
||||
#[error(transparent)]
|
||||
Anyhow(#[from] anyhow::Error),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue