第一步:设置max_result_window
curl -H "Content-Type: application/json" -XPUT 127.0.0.1:9200/price/_settings -d '{"index.max_result_window":"200000"}'
第二部:查询设置参数track_total_hits:true
{
"_source":["terminalId",
"lon",
"lat",
"time",
"h3_2"
],
"query": {"match": {
"h3_2":"586321722337132543"
}},
"from":0,
"size":100,
"track_total_hits":true
}