curl -H "Content-Type: application/json" -XPUT http://127.0.0.1:9200/你自己的index名字/_settings -d '{ "index" : { "max_result_window" : 500000}}'
curl -H "Content-Type: application/json" -XPUT http://127.0.0.1:9200/msg/_settings -d '{ "index" : { "max_result_window" : 500000}}'
curl -H "Content-Type: application/json" -XPUT http://127.0.0.1:9200/errormsg/_settings -d '{ "index" : { "max_result_window" : 500000}}'
设置成功返回: {"acknowledged":true}