es設(shè)置index.max_result_window(就是from+size,默認(rèn)大小10000)娶吞,可通過如下方式修改:
curl -XPUT 192.168.40.31:9200/datasmart/_settings -d '{ "index.max_result_window" :"1000000"}'
成功返回:
{"acknowledged":true}
這個(gè)請(qǐng)求只會(huì)對(duì)datasmart這個(gè)索引起作用,如果是設(shè)置所有索引躯砰,把datasmart改成_all即可
查詢當(dāng)前max_result_window把PUT改成GET殖氏,如:
curl -XGET 192.168.40.31:9200/datasmart/_settings
返回:
{
"datasmart": {
"settings": {
"index": {
"number_of_shards": "3",
"provided_name": "datasmart",
"max_result_window": "1000000",
"creation_date": "1506303097464",
"analysis": {
"analyzer": {
"default": {
"type": "smartcn"
}
}
},
"number_of_replicas": "1",
"uuid": "84ufzn8nQ1-InuxYGHj_IA",
"version": {
"created": "5050199"
}
}
}
}
}
這個(gè)設(shè)置是索引層的走搁,即便是使用_all設(shè)置了豹休,看日志也是對(duì)逐個(gè)索引加這個(gè)配置茵乱,后續(xù)新加的索引,max_result_window默認(rèn)還是1w