Skip to content

Instantly share code, notes, and snippets.

@imotov imotov/gist:7495959
Created Nov 16, 2013

Embed
What would you like to do?
$ curl -XPUT localhost:9200/test-idx/doc/1 -d '{"foo": "BaR"}'
{"ok":true,"_index":"test-idx","_type":"doc","_id":"1","_version":1}
$ curl "localhost:9200/test-idx/doc/_search?q=baR&pretty"
{
"took" : 3,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 1.0,
"hits" : [ {
"_index" : "test-idx",
"_type" : "doc",
"_id" : "1",
"_score" : 1.0, "_source" : {"foo": "BaR"}
} ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.