Skip to content

Instantly share code, notes, and snippets.

@rkarakaya
Created October 27, 2013 19:21
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 rkarakaya/7186753 to your computer and use it in GitHub Desktop.
Save rkarakaya/7186753 to your computer and use it in GitHub Desktop.
revert metadata blocking setting
//create an index
curl -XPUT 'http://127.0.0.1:9200/test1'
{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0
}
}
}
//close the index
curl -XPOST 'http://localhost:9200/test1/_close'
{
}
//disable metadata changes
curl -XPUT 'http://127.0.0.1:9200/test1/_settings'
{
"index": {
"blocks":{
"metadata":true
}
}
}
//how to revert it back???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment