解决elasticsearch超过10000条无法查询的问题
来源:互联网 发布:appserv的端口 编辑:程序博客网 时间:2024/06/06 01:06
我用from&size的方法进行分页查询,每次超过10000条的时候就会报错,(’Result window is too large, from + size must be less than or equal to: [10000] but was [10100]. 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 parameter.’)网上说要设置index.max_result_window,但是找了许多都没说明具体怎么设置,最后通过各种搜索,找到一种解决方法,具体操作方法如下:
1.首先在ES的head中关闭索引
2.在复合查询中设置max_result_window的最大索引值,以put方式提交
info/_settings?preserve_existing=true
{
“max_result_window” : “2000000000”
}
3.点击提交,在概览中将索引打开即可!
阅读全文
0 0
- 解决elasticsearch超过10000条无法查询的问题
- elasticsearch shard超过xx的问题
- searchlight要用elasticsearch解决metadata查询慢的问题
- 解决在Windows 2003中无法上传超过200K文件以及无法下载超过4M的文件问题
- 解决SERVER 2003不能上传大附件无法下载超过4M的附件的问题
- 解决windows 2003无法下载超过4M的附件的问题
- 解决systemback 无法生成超过4G的iso的问题
- 解决在Windows 2003的 IIS 6.0 中无法上传超过200K的附件以及无法下载超过4M的附件问题
- 解决在Windows 2003的 IIS 6.0 中无法上传超过200K的附件以及无法下载超过4M的附件问题
- 解决在Windows 2003的 IIS 6.0 中无法上传超过200K的附件以及无法下载超过4M的附件问题
- sql查询指定列超过一定条数的记录
- eclipse解决超过65535的问题???
- 无法解决的问题
- 解决:Mybatis无法查询中文问题
- elasticsearch 查询问题
- 解决web标准中IE无法设置滚动条颜色的问题
- 解决DataGridView在多线程中无法显示滚动条的问题
- 解决DataGridView在多线程中无法显示滚动条的问题
- Timer与TimerTask的真正原理&使用介绍
- 4种二分查找的C++算法
- LINQ To SQL 语法及实例大全
- 一段js实现实现手机自适应兼容所有手机和平板
- 机器学习经典算法之-----最小二乘法
- 解决elasticsearch超过10000条无法查询的问题
- 数据库索引的简单理解
- MCC 移动设备国家代码 (Mobile country code) 概述 MCC 国家/地区代码 注释 概述 移动设备国家代码 ( Mobile country code / MCC ) 定义于国际
- An introduction to Generative Adversarial Networks (with code in TensorFlow)
- c++广搜法跳马问题(队列)
- SplashActivity android闪屏页实现类似微信秒开并全屏
- python登录华为路由器
- Springboot循环依赖解决办法
- Android进阶之路