"error": { "root_cause": [ { "type": "query_phase_execution_exception", "reason": "Result window is too large, from + size must be less than or equal to: [1000000] but was [1000000099]. See the scroll
0 _search查询数据时可以指定多个index和type GET /index1,index2/type1,type2/_search GET /_all/type1/_search 相当于查询全部index下的type1的document GET /_all/type1/_search?from=0&size=5 from和size为分页参数 1 增加一条数据,手动指定document的ID PUT /index1/type1/1 { "content1":"a
ES scroll(ES游标) 解决深分页. Why 当Elasticsearch响应请求时,它必须确定docs的顺序,排列响应结果.如果请求的页数较少(假设每页20个docs), Elasticsearch不会有什么问题,但是如果页数较大时,比如请求第20页,Elasticsearch不得不取出第1页到第20页的所有docs,再去除第1页到第19页的docs,得到第20页的docs. 原理 Scrolling allows us to do an initial search and to k