遇到的报错信息:
Result window is too large, from + size must be less than or equal to:[10000] but was [10500]. See the scroll api for a more efficient way requestlarge data sets. This limit can be set by changing the[.max_result_window] level parameter
解决方案,修改index的参数:max_result_window限制条数.
PUT EsName/_settings { "index":{ "max_result_window":2000000 } }
修改后查询结果:
{ "EsName" : { "settings" : { "index" : { "routing" : { "allocation" : { "include" : { "_tier_preference" : "data_content" } } }, "number_of_shards" : "1", "provided_name" : "EsName", "max_result_window" : "2000000", "creation_date" : "164852336946684", "number_of_replicas" : "1", "uuid" : "4ZDsJZxWTOmWo1349g7etxNYQ", "version" : { "created" : "7150299" } } } } }