[root@ubuntu ~]# curl -XGET 'http://localhost:9200/twitter/_search?q=user:kimchy&pretty=true' { "took" : 93, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : 2, "max_score" : 0.2876821, "hits" : [ { "_index" : "twitter", "_type" : "doc", "_id" : "2", "_score" : 0.2876821, "_source" : { "user" : "kimchy", "post_date" : "2009-11-15T14:12:12", "message" : "Another tweet, will it be indexed?" } }, { "_index" : "twitter", "_type" : "doc", "_id" : "1", "_score" : 0.2876821, "_source" : { "user" : "kimchy", "post_date" : "2009-11-15T13:12:00", "message" : "Trying out Elasticsearch, so far so good?" } } ] } }
|