hanc00l / wooyun_public

This repo is archived. Thanks for wooyun! 乌云公开漏洞、知识库爬虫和搜索 crawl and search for wooyun.org public bug(vulnerability) and drops
http://www.wooyun.org
4.38k stars 1.94k forks source link

查询漏洞的时候超过500页后的漏洞就会出现 Internal Server Error的解决 #22

Open hanc00l opened 8 years ago

hanc00l commented 8 years ago

elasticsearch默认的最大分页数是10000条记录(也就是500页),因此超过500页会报错。解决办法: 在命令行下执行

curl -XPUT "http://localhost:9200/wooyun/_settings" -d '{ "index" : { "max_result_window" : 500000 } }'

修改默认最大分页记录。

参考链接:http://stackoverflow.com/questions/35206409/elasticsearch-2-1-result-window-is-too-large-index-max-result-window