Ruby on rails 如何在rails应用程序的Elasticsearch中增加index max结果窗口?
尝试访问rails应用程序中超过10000条记录时,elasticsearch返回此错误Ruby on rails 如何在rails应用程序的Elasticsearch中增加index max结果窗口?,ruby-on-rails,elasticsearch,Ruby On Rails,elasticsearch,尝试访问rails应用程序中超过10000条记录时,elasticsearch返回此错误 [500] {"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 [12270]. 根据我的搜索,我知道有一些解决方案 增加索引最大结果
[500] {"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 [12270].
根据我的搜索,我知道有一些解决方案
我找不到一个教程可以在rails应用程序上正确设置它们中的任何一个,所以你能帮我这样做吗?知道我正在使用will_paginate gem进行分页,我想知道如果我将其更改为pagy gem,它能解决问题吗,或者此错误与分页无关?这是一个索引设置。通过执行 卷曲度如下所示
curl-XPUT”“-d'{“index”:{“max\u result\u window”:1000000}'尝试使用Scroll APInot理想的方法同时处理多个请求