Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large,

elasticsearch5.6.10 Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Result org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:272) ~[e... 阅读详情

ES查询出现下面错误:

Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large, from + size must be less than or equal to: [10000] but was [1346010]. 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.
        at org.elasticsearch.search.DefaultSearchContext.preProcess(DefaultSearchContext.java:203) ~[elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.search.query.QueryPhase.preProcess(QueryPhase.java:90) ~[elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.search.SearchService.createContext(SearchService.java:493) ~[elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:457) ~[elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:253) ~[elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:330) ~[elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:327) ~[elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69) ~[elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.transport.TransportService$7.doRun(TransportService.java:644) [elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:638) [elasticsearch-5.5.2.jar:5.5.2]
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-5.5.2.jar:5.5.2]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_101]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_101]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]
[2017-10-24T10:23:38,573][DEBUG][o.e.a.s.TransportSearchAction] [node-71] All shards failed for phase: [query]

看到ES提示我结果窗口太大了,目前最大值为10000,而我却要求给我1346010。并且在后面也提到了要求我修改index.max_result_window参数来增大结果窗口大小。
在head中执行下面代码即可。
这里写图片描述

注意:events是我的索引别名。

执行完后再ES上会有如下显示:

[2017-10-24T10:27:57,168][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,169][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,185][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,188][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,199][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,199][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,209][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,211][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,218][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,222][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,231][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,234][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,239][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,239][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,241][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,242][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,243][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,249][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,250][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,251][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,252][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,252][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
[2017-10-24T10:27:57,254][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_result_window] from [10000] to [100000000]
[2017-10-24T10:27:57,254][INFO ][o.e.c.s.IndexScopedSettings] [node-71] updating [index.max_rescore_window] from [10000] to [100000000]
【ZZULIOJ】郑州轻工业大学oj题解整合 写在前面 关于ZZULIOJ题解 学习编程,想要巩固无非就是刷题或者做项目,然后因为我大一开始是刷郑轻的题目,就想着自己整合一下自己写的题目。既是复习也是笔记吧。 题解(内有题目描述) 1000 整数a+b 1001 植树问题 1002 简单多项式求值 1003 两个整数的四则运算 1004 三位数的数位分离 1005 整数幂 1006 求等差数列的和 1007 鸡兔同笼 1008 美元和人民币 1009 求平均分 1010 求圆的周长和面积 1011 圆柱体表面积 1012 求绝对值 1013 求两点间 阅读详情

相关推荐

当 AI + 可视化融入消防:开启智能消防新时代

总结来说,AI + 可视化技术融入消防,开启了智能消防新时代。它以精准预警、高效救援和全面资源管理,革新消防工作方式。从前期规划到系统搭建,再到后期运维,每个环节都为提升消防能力奠定基础。尽管面临技术成本、数据安全和人员适应等挑战,但随着技术发展和应用推广,这些问题将逐步解决。相信在 AI + 可视化助力下,消防领域将不断进步,为人们创造更安全生活环境,有效抵御火灾威胁。

2401_87844374的博客 1220

【elasticsearch】elasticsearch查询报错问题整理

问题一: 1. 业务方:监管科技 2. 报错内容: Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large, from + size must be less than or equal to: [20000] but was [83440000]. See the scroll api for a more efficient way to request larg

Mrerlou的博客 3208

unity游戏开发日志(一)将mmd模型导入unity,并解决材质丢失的问题

unity音乐游戏开发,导入角色模型并解决材质问题

yizhigou1的博客 1762

elasticsearch分页查询的Result window is too large问题

一、问题 最近做项目,在elasticsearch中进行分页查询时,遇到这样一个问题,页码刚开始时,es正常返回结果, 可一旦页数增大,返回结果就抛异常,出错了。异常信息如下: org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large, from + size must b...

panda-star的博客 1420

Python+Vue计算机毕业设计风电场监控系统的设计与实现7bd6i(程序+LW+源码+部署)

Python3.7.7+Django+Mysql5.7+pip list+HBuilderX(Vscode也行)+Vue+Pychram社区版。2. 前端:vue+css+javascript+jQuery+easyUI+highcharts。2.IDE环境:Python和Python 社区版都可以。Django + Vue +Python+Mysql 等等组成,B/S模式等等。该项目含有源码、文档、程序、数据库、配套开发软件、软件安装教程。1. 后端:Python、Vue、Django、Mysql。

华信计算机毕设源码程序 341

Android车载多屏开发实战:从零搭建同显/异显Demo(附源码)

本文详细介绍了Android车载多屏开发的实战经验,从零搭建同显/异显Demo,涵盖多屏模拟、核心API调用、同显/异显架构实现及性能优化等关键环节。通过C++构建完整开发链路,帮助开发者快速掌握多屏同显和多屏异显技术,提升智能座舱系统的交互体验。附源码供参考。

weixin_29233857的博客 404

elasticsearch报错Result window is too large问题解决

我在使用Elasticsearch进行search查询的过程中,出现了Result window is too large问题。 异常堆栈信息: Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large, from + size must be less than or equal to: [10000] but was [178700]. See the scro

卡洛斯利伯 1145

python基础·练习1(字符串作业)

python基础·练习1字符串作业一、填空二、编程初级中级 字符串作业 一、填空 1.已知s2 = ‘123’,则:s2 * 3 = ___________; s2 + str(456) = ___________; s2 = '123' print(s2 * 3) #123123123 print(s2 + str(456)) #123456 2.已知s1 = ‘123456789’。则: s1[:3] = ________; s1[-5:] =____________; s1[::2]=______;

qq_47326711的博客 8122

es报错nested: QueryPhaseExecutionException[Result window is too large, from + size must be less than .

遇到问题 最近在做爬虫数据分页查询业务,整个数据量大概在100w左右。分页查询数据量超过10000时就会报此错误,即from+size>10000。 示例 分析问题 官方限制最大检索为10000条。 为什么这样处理 分页查询一般只会查询前几百条或者上千条,上万的很少很少。 es为分布式分片存储,分页查询涉及到数据的汇总、排序再分页,导致效率低下,当form更大时可能会直接拖垮机器。 官方...

九块钱的博客 1396

记录一下本地部署Dify的坑

1. 截止2025-3-4为止,请注意,不要直接拉Dify的1.0.0版本。请先试用0.15.3版本。1.0.0有一个bug需要解决。3. 请使用docker-ce 新版本,docker-engine等老版本可能会有部分容器启动脚本执行莫名报错。2. 注意,请使用docker-compose V2版本,或者V1较高版本,否则会导致解析官方yml模板错误。

哈利路亚的收藏夹 5346

机器人控制基础:伺服驱动电机 PID 参数自适应控制的实现方法及研究

伺服电机PID参数自适应控制技术研究 摘要:针对伺服驱动电机在动态负载工况下传统PID控制性能下降的问题,本文研究了多种自适应控制方法。通过分析6种主流技术(包括模型参考自适应、模糊逻辑、神经网络等)的原理、实现步骤及适用场景,揭示了负载感知精度、参数调节实时性和系统稳定性三大技术难点,并提出了相应解决方案。以模糊自适应PID为例的实验验证表明,该技术能有效提升伺服系统在变负载条件下的控制性能。研究为工业应用中伺服电机的精确控制提供了重要参考。

start_up_go的博客 827

Elasticsearch报Result window is too large问题处理

Elasticsearch报Result window is too large问题处理 在使用Elasticsearch进行search查询时,出现了Result window is too large的问题。 报错如下: QueryPhaseExecutionException[Result window is too large, from + size must be

追求卓越,做到专业 1万+

innovus:ccopt_design分段长tree操作

这步don't touch保证后面完整cts尽量不会动到已经长过的tree。需要给sub tree手写一个spec,参考create_ccopt_clock_tree_spec -file的写法,只写create_ccopt_clock_tree和skew group部分就行。

m0_61544122的博客 1677

ES数据库-Result window is too large, from + size must be less than or equal to: [10000] but was [12452]

项目场景: 初始化亚马逊帐号关系表的认领时间 问题描述: 报错的重点: Result window is too large, from + size must be less than or equal to: [10000] but was [12452]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max

java漫步天下的专栏 2889

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

ES问题:Result window is too large, from + size must be less than or equal to: [10000] but was [28939].

ES错误:org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large, from + size must be less than or equal to: [10000] but was [28939]. See the scroll api for a more efficien...

qq_37810016的博客 7021

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

Elasticsearch报错Result window is too large

接口:es地址/索引/_settings。

王永存 631

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

QueryPhaseExecutionException[Result window is too large, from + size must be less than or equal to:

查询返回数据条数过大,最大10000条: //错误代码 Pageable<WayBill> pageData = new PageRequest(0,20000) //修改为 Pageable<WayBill> pageData = new PageRequest(0,10000)

caiyibing1992的博客 1878

Caused by: org.elasticsearch.action.search.SearchPhaseExecutionException报错解决

kibana报错Kibana server is not ready yet解决

qq_44663150的博客 4152

Caused by: org.elasticsearch.action.search.SearchPhaseExecutionException: Search rejected due to mis

Caused by: org.elasticsearch.action.search.SearchPhaseExecutionException: Search rejected due to mis

weixin_45428910的博客 1879

ElasticSearch 报错记录

ES 报错 一、QueryPhaseExecutionException 详情 nested: QueryPhaseExecutionException[Result window is too large, from + size must be less than or equal to: [10000] but was [10010]. See the scroll api for ...

帅大叔的博客 456

QueryPhaseExecutionException[Result window is too large

Failed to execute phase [query]

sinat_38560284的博客 321

ElasticSearch index.max_result_window

当用elasticsearch进行深度分页查询时的size-from大于10000的时候,就会报错“org.elasticsearch.search.query.QueryPhaseExecutionException”, Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is...

lpfasd123的博客 2894

Elasticsearch报错Result window is too large(query_phase_execution_exception)解决方案

windows安装Elasticsearch参考: https://blog.csdn.net/MadLifeBin/article/details/120948598 问题 分页查询Elasticsearch,当请求的数据大于 10000 时,继续查询会报错 原因 Elasticsearch 不提倡使用 from + size 的方式请求深度分页,参考官网文档:https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate

MadLifeBin的博客 830

SearchContextMissingException: No search context found for id [xx] 问题排查

背景 需要将存放在ES系统中的IMEI信息,将全量的数据分批拉取结果集到另外的系统,处理流程大抵就是先调用ES的查询方法,Scroll查询每批次10000条数据,得到数据集合后,在转换成自己系统需要的信息,最后插入到数据库,然后再通过scrollId进行下一次的查询。 但是有的时候会报下面的问题,我观察后发现,都是在处理一些大数据量的时候查询条件时,因为要入库,可能耗时比较多一些,而期初我们的s...

翎野君的博客 5883

org.elasticsearch.search.SearchContextMissingException: No search context found for id

org.elasticsearch.transport.RemoteTransportException: [datanode63][10.65.209.163:9300][indices:data/read/search[phase/query/scroll]] org.elasticsearch.search.SearchContextMissingException: No search context found for id [48878168] at org.elasticsearch.sear

奋斗不息 2030

Result window is too large, from + size must be less than or equal to: [10000] but was

es分页搜索报错,

loliDapao的博客 4867
上一篇: elasticsearch head 连接不到elasticsearch
下一篇: 一文梳理等保2.0与工业控制系统安全扩展要求
梦想涨价了
博客等级 码龄15年 88粉丝 93原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值