[英]Elasticsearch scroll not working
我正在運行以下Elasticsearch聚合查詢
curl -XPOST 'http://localhost:9200/ae2015/_search/?scroll=1m' -d '{
"size" : 0,
"query":{"constant_score":{"filter": {"geo_bounding_box" : {"location": {"top_left" : [-180, 85],"bottom_right" : [180, -85]}}}}},
"aggs":{
"grid": {
"geohash_grid": {"field":"location","precision": 3},
"aggs": {
"count":{"sum":{"field":"count"}}
}
}
}
}'
這將按預期返回一個scroll_id,但是當我使用它時,響應為“空”,即
{"_scroll_id":"xxx","took":936,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":13238893,"max_score":0.0,"hits":[]}}
好像滾動不適用於聚合。
任何建議將不勝感激。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.