Skip to content

Instantly share code, notes, and snippets.

@szydan
Last active February 23, 2024 17:27
Show Gist options
  • Save szydan/b70dcd91221f9d92ed2c1dedee89c84c to your computer and use it in GitHub Desktop.
Save szydan/b70dcd91221f9d92ed2c1dedee89c84c to your computer and use it in GitHub Desktop.
How to clone es index
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