mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
Implement POST /indexes-swap
This commit is contained in:
committed by
Clément Renault
parent
28bd8b6c6b
commit
17cd2a4aa0
@ -113,8 +113,7 @@ pub enum KindDump {
|
||||
primary_key: Option<String>,
|
||||
},
|
||||
IndexSwap {
|
||||
lhs: String,
|
||||
rhs: String,
|
||||
swaps: Vec<(String, String)>,
|
||||
},
|
||||
TaskCancelation {
|
||||
query: String,
|
||||
@ -185,7 +184,7 @@ impl From<KindWithContent> for KindDump {
|
||||
KindWithContent::IndexUpdate { primary_key, .. } => {
|
||||
KindDump::IndexUpdate { primary_key }
|
||||
}
|
||||
KindWithContent::IndexSwap { lhs, rhs } => KindDump::IndexSwap { lhs, rhs },
|
||||
KindWithContent::IndexSwap { swaps } => KindDump::IndexSwap { swaps },
|
||||
KindWithContent::TaskCancelation { query, tasks } => {
|
||||
KindDump::TaskCancelation { query, tasks }
|
||||
}
|
||||
|
Reference in New Issue
Block a user