我正在使用Elasticsearch 1.5.2。我有278个存储产品的索引。我检查它们是否存储在头部插件中。当运行MATCH_ALL的查询我只得到10命中但是总的是278,我得到这样的结果:Elasticsearch查询match_all
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 278,
"max_score": 1,
"hits": [.................only 10 products.......]
我想,我在打所有的我的278次的结果得到的。
在查询中使用'size = 278' ;-) – Val
是这样的吗? { “查询”:{ “MATCH_ALL”:{ “大小”:278} }} –