'http://localhost:9200/twitter/tweet/_search?q=user:kimchy' returns:
{
"_shards":{
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits":{
"total" : 1,
"hits" : [
{
"_index" : "twitter",
"_type" : "tweet",
"_id" : "1",
"_source" : {
"user" : "kimchy",
"postDate" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
}
}
]
}
}
But sometimes it would be more useful to get a plain "dump" of the _source data instead:
{
...
"hits":{
"total" : 1,
"hits" : [
{
"user" : "kimchy",
"postDate" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
}
]
}
}
'http://localhost:9200/twitter/tweet/_search?q=user:kimchy' returns:
{ "_shards":{ "total" : 5, "successful" : 5, "failed" : 0 }, "hits":{ "total" : 1, "hits" : [ { "_index" : "twitter", "_type" : "tweet", "_id" : "1", "_source" : { "user" : "kimchy", "postDate" : "2009-11-15T14:12:12", "message" : "trying out Elastic Search" } } ] } }But sometimes it would be more useful to get a plain "dump" of the _source data instead:
{ ... "hits":{ "total" : 1, "hits" : [ { "user" : "kimchy", "postDate" : "2009-11-15T14:12:12", "message" : "trying out Elastic Search" } ] } }