Last active
February 17, 2022 09:15
-
-
Save ebuildy/cfc8938e209439bc4f89f4a5416a4ce9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST _aliases | |
{ | |
"actions": [ | |
{ | |
"remove": { | |
"index": "consolidation-ctr-v1", | |
"alias": "consolidation-ctr" | |
} | |
}, | |
{ | |
"add": { | |
"index": "consolidation-ctr-v2", | |
"alias": "consolidation-ctr" | |
} | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read-only mode | |
PUT consolidation-ctr/_settings | |
{ | |
"settings": { | |
"index.blocks.write": true | |
} | |
} | |
# Copy index | |
POST /consolidation-ctr/_clone/consolidation-ctr-v1 | |
# Remove original index | |
DELETE consolidation-ctr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment