一:在Linux服务器中执行如下命令(开启es服务)
curl -XPUT http://服务器ip:9200/索引名称/_settings -d '{ "index" : { "max_result_window" : 100000000}}'
二:可以通过访问查询修改后的状态
访问:http://服务器ip:9200/索引名称/_settings/ 查询
示例:
{"school_file":{"settings":{"index":{"number_of_shards":"5","provided_name":"school_file","max_result_window":"100000000","creation_date":"1521469965171","number_of_replicas":"1","uuid":"2OwiBwkSQSmaEiIDX8iUrw","version":{"created":"5050299"}}}}}