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

mongodb 全文查询太慢 #6

Closed RicterZ closed 8 years ago

RicterZ commented 8 years ago

mysql 才 2s..望改进

hanc00l commented 8 years ago

正在改为用elasticsearch搜索,非常快

han2008@qq.com

在 2016年8月2日,10:07,Ricter Zheng notifications@github.com 写道:

mysql 才 2s..望改进

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

RicterZ commented 8 years ago

thx,另外希望改用 docker(。 因为 vmware 为收费软件,然而我已用 Parallels Desktop,不太想买了..

wooutl commented 8 years ago

期待有漏洞全的版本,我记得之前你写了。。。

hanc00l commented 8 years ago

希望乌云早日重新开放,就不用这样麻烦了;欢迎各位高手和hacker共同完善。

在 2016年8月2日,上午10:14,Ricter Zheng notifications@github.com 写道:

thx,另外希望改用 docker(。 因为 vmware 为收费软件,然而我已用 Parallels Desktop,不太想买了..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hanc00l/wooyun_public/issues/6#issuecomment-236773762, or mute the thread https://github.com/notifications/unsubscribe-auth/AMKwhP4_qdqkh6TxQAnoBpXcDA9vA3Mjks5qbqf9gaJpZM4JaLHy.

hanc00l commented 8 years ago

mongodb进行全文搜索的确是太慢,目前正在改为全文搜索使用elasticsearch。搭建elasticsearch步骤比较麻烦,已解决,程序修改差不多了;现在唯一就是全文搜索的中文分词问题, 经过反复测试,使用了IK插件,但分词效果不理想。不知道是不是我哪里搞得不对,还望有高手指点指点。

1c3z commented 8 years ago

sudo apt-get install silversearcher-ag

ag --html 关键字

第一次久点,后面只需要3s,机械硬盘,亲测。

RicterZ commented 8 years ago

@1c3z ag 起来并不是很直观..