-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
This feature request is part of the new features introduced on Meilisearch v0.30.
Extracted from meilisearch/integration-guides#221.
Related to:
This issue aims to make Meilisearch more production-ready by allowing the swap of indexes, and this feature should remove the possible downtimes.
- Add the
POST /swap-indexes
endpoint - Add an
indexSwap
task type - Add an
indexes.swap
API Key action - Add a
duplicate_index_found
error. - Add
swaps
inTasks.details
- Add code sample
swap_indexes_1
into this file
This code sample should show an example of the corresponding curl command, but with swift code:
curl \
-X POST 'http://localhost:7700/swap-indexes' \
-H 'Content-Type: application/json' \
--data-binary '[
{
"indexes": [
"indexA",
"indexB"
]
},
{
"indexes": [
"indexX",
"indexY"
]
}
]'
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers