-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[feature request]copy_index api(reindex with file copy not doc insert) #44128
Copy link
Copy link
Closed
Labels
:Data Management/Indices APIsDO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead.DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead.
Description
use case: copy old index as a backup to support rollback and then update the original index to move forward in the same cluster.
ES provide re-index API which can be used to copy index with many flexibility like schema change, doc filter etc.
although with many limitations, from performance side, the file copy method is much fast than reindex, especially when index size is big.
API:
POST _copyindex
{
"source": {
"index": "twitter"
},
"dest": {
"index": "new_twitter"
"replica": Number//must eq or less than orginal index replica, otherwise, fail request
}
}
it's really like snapshot-restore process only repository is ES itself
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Data Management/Indices APIsDO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead.DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead.
Type
Fields
Give feedbackNo fields configured for issues without a type.