简体   繁体   English

如何从 ruby on rails 应用程序中的设置更改 elasticsearch 最大结果 windows?

[英]How to change elasticsearch max result windows from settings inside ruby on rails application?

I want to increase the size of elasticsearch max result windows from settings inside ruby on rails (something like configuration file), so that I can just add the max result window size configuration to the rails app, without having to call it from commands or use curl. I want to increase the size of elasticsearch max result windows from settings inside ruby on rails (something like configuration file), so that I can just add the max result window size configuration to the rails app, without having to call it from commands or use curl。

knowing that (based on a stackoverflow answer)... I tried to create a new file called elasticsearch.yml, and add index_max_result_window = 15000, but this didn't work for latest versions of elasticsearch知道(基于stackoverflow答案)...我尝试创建一个名为elasticsearch.yml的新文件,并添加index_max_result_window = 15000,但这不适用于最新版本的elasticsearch

Use index.max_result_window instead . 改用index.max_result_window

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM