Skip to content

Instantly share code, notes, and snippets.

@timscott
Created April 25, 2011 23: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 timscott/941463 to your computer and use it in GitHub Desktop.
Save timscott/941463 to your computer and use it in GitHub Desktop.
curl -XPUT localhost:9200/test -d'
> {"settings":{"index":{"number_of_shards":3, "number_of_replicas":2}}}
{"ok":true,"acknowledged":true}
curl -XPUT localhost:9200/test/tweet/_mapping -d'
> {
> "tweet" : {
> "properties" : {
> "message" : {"type" : "string", "store" : "yes"}
> }
> }
> }'
{"ok":true,"acknowledged":true}
curl -XPUT localhost:9200/test/tweet/1 -d'
> {"message":"test"}'
{"error":"UnavailableShardsException[[test][0] [3] shardIt, [1] active : Timeout waiting for [1m], request: index {[test][tweet][1], source[\n{\"message\":\"test\"}\n]}]","status":500}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment