Skip to content

Instantly share code, notes, and snippets.

@ebuildy
Last active February 17, 2022 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebuildy/cfc8938e209439bc4f89f4a5416a4ce9 to your computer and use it in GitHub Desktop.
Save ebuildy/cfc8938e209439bc4f89f4a5416a4ce9 to your computer and use it in GitHub Desktop.
POST _aliases
{
"actions": [
{
"remove": {
"index": "consolidation-ctr-v1",
"alias": "consolidation-ctr"
}
},
{
"add": {
"index": "consolidation-ctr-v2",
"alias": "consolidation-ctr"
}
}
]
}
# 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