多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
es6原有2个节点,新添加一个节点启动后提示窗口太小: ``` Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large, from + size must be less than or equal to: [10000] but was [11300]. 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 setting. ``` 使用es2.X的修改窗口方法: ``` curl -XPUT http://192.168.86.230:9200/_all/_settings -d '{ "index" : { "max_result_window" : 100000000}}' ``` 结果又提示: ``` {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406} ``` 原因是6.x修改了提交方法: 官网说明: ``` https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests ``` 修改后的方法: ``` curl -H "Content-Type: application/json" -XPUT http://192.168.86.230:9200/_all/_settings -d '{ "index" : { "max_result_window" : 100000000}}' ``` 查看: ``` http://192.168.86.230:9200/_all/_settings/ ```