mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Introduce a new route to export documents and enqueue the export task
This commit is contained in:
committed by
Kerollmops
parent
ae8c1461e1
commit
e74c3b692a
@ -141,6 +141,12 @@ pub enum KindDump {
|
||||
instance_uid: Option<InstanceUid>,
|
||||
},
|
||||
SnapshotCreation,
|
||||
Export {
|
||||
url: String,
|
||||
indexes: Vec<String>,
|
||||
skip_embeddings: bool,
|
||||
api_key: Option<String>,
|
||||
},
|
||||
UpgradeDatabase {
|
||||
from: (u32, u32, u32),
|
||||
},
|
||||
@ -213,6 +219,14 @@ impl From<KindWithContent> for KindDump {
|
||||
KindDump::DumpCreation { keys, instance_uid }
|
||||
}
|
||||
KindWithContent::SnapshotCreation => KindDump::SnapshotCreation,
|
||||
KindWithContent::Export { url, indexes, skip_embeddings, api_key } => {
|
||||
KindDump::Export {
|
||||
url,
|
||||
indexes: indexes.into_iter().map(|pattern| pattern.to_string()).collect(),
|
||||
skip_embeddings,
|
||||
api_key,
|
||||
}
|
||||
}
|
||||
KindWithContent::UpgradeDatabase { from: version } => {
|
||||
KindDump::UpgradeDatabase { from: version }
|
||||
}
|
||||
|
Reference in New Issue
Block a user