Elasticsearch 的分页报错 result window is too large

检查自己分页查询的代码

Pageable pageable = new PageRequest(0, 10000);
searchQuery.setPageable(pageable); // 分页效果

ES默认最大值为10000.

设置方法:

时间: 2024-08-10 19:03:43

Elasticsearch 的分页报错 result window is too large的相关文章

ES报错Result window is too large问题处理

我在使用Elasticsearch进行search查询的过程中,出现了Result window is too large问题.这里简单做一个报错复现: In [1]: import requests In [2]: requests.get('http://127.0.0.1:9200/cmdb-now/_search?page=1&size=10000000').json() Out[2]: {     u'error': {         u'failed_shards': [     

Result window is too large 问题处理

报错内如如下:   {"error" : {     "root_cause" : [ {       "type" : "query_phase_execution_exception",       "reason" : "Result window is too large, from + size must be less than or equal to: [10000] but was

elk中elasticsearch安装启动报错

elasticsearch安装之后.启动报错.elasticsearch版本为5.4.1 下载安装: wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.1.tar.gz tar zxf elasticsearch-5.4.1.tar.gz mv elasticsearch-5.4.1 /usr/local/elasticsearch cd /usr/local/elasticsearch/ ./

ElasticSearch本人启动报错总结

1.报错关键代码如下: Exception in thread "main" 2019-04-28 03:53:04,339 main ERROR No log4j2 configuration file found. SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ParsingException[Failed to parse object: expecting token o

dnmp(docker的lnmp)安装WordPress之后图片上传问题 问题:图片上传大小问题解决和 报错413 Request Entity Too Large

首先是提示超过图片尺寸和大小, 最后发现都是图片大小的问题, 需要修改php的最大上传size 修改之后查看php配置  已经生效  但是还是报错, 提示返回不是合法的json,  查看控制台, 报错是问题:413 Request Entity Too Large  发现是Nginx的配置, 有盖配置. dnmp环境  php配置  直接重新 docker-compose up --build  就可以生效 nginx 需要 停止 删除 重新build才可以, 注意, 停止删除容器, build

mybatisGenerator 代码自动生成报错 Result Maps collection already contains value for BaseResultMap

由于mybatis简单易学,比起Hibername来,更容易上手,代码也能自动生成.这几天研究了下代码自动生成的,参考: http://0609xiaohua.iteye.com/blog/1453570 但是把代码复制进来,运行了下,却跑不起来,报以下错误: Exception in thread "main" java.lang.ExceptionInInitializerError at com.test.Test.main(Test.java:12)Caused by: org

node.js中模块报错【window is not defined】的解决方法

(function(window) { /* Keep source code the same */ // })(typeof window == "undefined" ? global : window); // or })(this);

解决mybatis报错Result Maps collection does not contain value for java.lang.Integer

解决办法:1.检查mybatis的xml配置 2.在某处肯定有配错了的,如"resultMap" -->"resultType" [html] view plain copy<select id="getNumDayMoney" resultMap="java.lang.Integer" parameterType="java.lang.Integer"> <![CDATA[ sel

Nginx 报错413 Request Entity Too Large 上传文件过大

1.进入Nginx安装路径下的conf文件夹中(我的路径是:/usr/local/nginx/conf) 2.打开nginx.conf,在http大括号中第一行加语句:client_max_body_size 所需大小m; 3.进入Nginx安装路径下的sbin文件夹中(我的路径是:usr/local/nginx/sbin) 4.执行重启命令:./nginx -s reload