Created
October 27, 2013 19:21
-
-
Save rkarakaya/7186753 to your computer and use it in GitHub Desktop.
revert metadata blocking setting
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
//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