[ElasticSearch]搜索
1. 空搜索 测试数据: https://gist.github.com/clintongormley/8579281 1.1 搜索 最基本的搜索API是空搜索(empty search),它没有指定任何的查询条件,只返回集群索引中的所有文档: curl -XGET 'localhost:9200/_search?pretty' Java版本: SearchRequestBuilder searchRequestBuilder = client.prepareSearch(); SearchResponse response = searchRequestBuilder.get(); 返回的结果如下: { "took": 4, "timed_out": false, "_shards": { "total": 10, "successful": 10, "failed": 0 }, "hits": { "total": 13, "max_score": 1.0, "hits": [ { "_index": "gb", "_type": "tweet", "_id": "5", "_sc...