hanc00l

Results 7 issues of hanc00l

for examples: User-agent

enhancement

elasticsearch默认的最大分页数是10000条记录(也就是500页),因此超过500页会报错。解决办法: 在命令行下执行 ``` bash 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](http://stackoverflow.com/questions/35206409/elasticsearch-2-1-result-window-is-too-large-index-max-result-window)

flask作为web server基本能满足一些简单的和小规模的应用需求,如果有更高要求的,可使用tornado/app.py。使用前请先sudo pip install tornado安装依赖包,然后在tornador目录下运行app.py就OK了。

mongodb搜索的确慢得难以忍受了,所以,这几天一直在研究用elasticsearch引擎来快速搜索内容,经过测试已完成了配置和代码的测试,配置文档和虚拟机准备在这个周末会上传到网上。 要使用elasticsearch搜索,可以直接下载即将打包好的虚拟机(包含wooyun网站的数据),或者根据我测试的配置文档自己手动配置。 家里网速实在太慢了,所以争取周末能传完虚拟机吧。 欢迎大家一起探讨和交流。