2016-04-06 160 views
0

我用滾動查詢ES,但我仍然有10條記錄,我的查詢如下:ElasticSearch滾動只返回10條記錄

curl -XGET 'http://10.0.0.5:9200/myin/app/_search?scroll=1m' -d '{ 
    "_source": "appAd", 
    "query": { 
    "bool": { 
     "must_not": { 
     "term": { 
      "app.raw": "dt" 
     } 
     } 
    } 
    } 

以下是結果:

"took":467,"_shards":{"total":24,"successful":24,"failed":0},"hits":{"total":760000} ... 

但只返回10條記錄,儘管它達到了760000條。

回答