Result window is too large, from + size must be less than or equal to: [10000] but was [10010]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting. 1. 二、深度分页之scroll ...
一、三者之间的区别 from size: 深度分页或者size特别大的情况,会出现deep pagination问题。且es的自保机制max_result_window是10000,当查询数量超过一万就会报错 该查询的实现原理类似于mysql中的limit,比如查询第10001条数据,那么需要将前面的1000条都拿出来,进行过滤,最终才得到数据。(性能较差,实现简单,适用于少量数...
From Size 方式分页查询 demo func TestESQueryDemo(client *elastic.Client) { // ES SDK 教程:https://www.yisu.com/zixun/694102.html query := elastic.NewBoolQuery