ES from、size用法

from,size使用

from表示从第几条起,size是查询多少条,默认是10

有点类似 limit 0,10

GET _search
{
  "from": "0", "size": "10",
   "qeury": {"term": {"filed": 2}}
}

请注意,from+ size不能超过index.max_result_window 默认设置为10,000 的索引设置。有关 进行深度滚动的更有效方法
请参见Scroll或Search After API

你可能感兴趣的:(ES from、size用法)