结果窗口太大,“ +”大小必须小于或等于:[10000],但为[100000] [英] Result window is too large, from + size must be less than or equal to: [10000] but was [100000]

查看:293
本文介绍了结果窗口太大,“ +”大小必须小于或等于:[10000],但为[100000]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

elasticSearch中出现以下错误:

I got the following Error in elasticSearch:


[结果窗口太大,从+大小必须小于或等于
至:[10000]
,但为[100000]。

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

请参见滚动API,以更有效的方式请求
请求大数据集。可以通过更改
[index.max_result_window]索引级别参数来设置此限制。]我没有得到我们必须在其中设置文件的

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.] and i am not getting in which file we have to set



 index.max_result_window = 50000;


推荐答案

您可以找到此处一些用于深度分页的官方文档参考。

You can find here some references to official documentation for deep paging.

如果您需要更新最大结果窗口在您的Elasticsearch实例中,您可以通过以下方式修改设置

If you need to update the maximum result window in your elasticsearch instance, you can edit settings this way

curl -XPUT "http://localhost:9200/my_index/_settings" -d '{ "index" : { "max_result_window" : 500000 } }' -H "Content-Type: application/json"

已经在此处进行了讨论,但请注意深度分页,因为它可能会增加内存使用量

as already discussed here, but pay attention to deep paging, because it could increase memory usage and degrade performance of elasticsearch.

为了实施更有效的搜索,您应该查看一下:

In order to implement a more efficient search, you should take a look at:

  • Scroll API
  • Search After API

这篇关于结果窗口太大,“ +”大小必须小于或等于:[10000],但为[100000]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆