Last active
February 23, 2024 17:27
-
-
Save szydan/b70dcd91221f9d92ed2c1dedee89c84c to your computer and use it in GitHub Desktop.
How to clone es index
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
curl -H 'Content-Type: application/json' -XPUT http://localhost:9220/.siren/_settings -d' | |
{ | |
"settings": { | |
"index.blocks.write": true | |
} | |
}' | |
curl -H 'Content-Type: application/json' -X POST http://localhost:9220/.siren/_clone/.siren-simon?wait_for_active_shards=all | |
curl -H 'Content-Type: application/json' -XPUT http://localhost:9220/.siren/_settings -d' | |
{ | |
"settings": { | |
"index.blocks.write": false | |
} | |
}' | |
curl -H 'Content-Type: application/json' -XPUT http://localhost:9220/.siren-simon/_settings -d' | |
{ | |
"settings": { | |
"index.blocks.write": false | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment