Skip to content

Instantly share code, notes, and snippets.

@ruflin
Created August 15, 2011 12:16
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 ruflin/1146118 to your computer and use it in GitHub Desktop.
Save ruflin/1146118 to your computer and use it in GitHub Desktop.
Set invalid settings
curl -XDELETE 'http://localhost:9200/test/test/1'
curl -XPUT 'http://localhost:9200/test/test/1' -d '{}'
curl -XPUT 'localhost:9200/test/_settings' -d '{"index":{"merge.policy.expunge_deletes_allowed":25}}'
curl -XPOST 'localhost:9200/test/_close'
curl -XPUT 'localhost:9200/test/_settings' -d '{"index":{"merge.policy.hello_world":15}}'
curl -XPOST 'localhost:9200/test/_open'
curl -XGET 'localhost:9200/test/_settings?pretty=true'
@ruflin
Copy link
Author

ruflin commented Aug 15, 2011

I'm suprised by the last line of the output.

{
  "test" : {
    "settings" : {
      "index.number_of_shards" : "5",
      "index.number_of_replicas" : "1",
      "index.merge.policy.type" : "log_byte_size",
      "index.merge.policy.merge_factor" : "15",
      "index.merge.policy.expunge_deletes_allowed" : "25",
      "index.merge.policy.hello_world" : "15"
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment