PHP/mySQL中类似Google的搜索引擎 [英] Google-like Search Engine in PHP/mySQL
本文介绍了PHP/mySQL中类似Google的搜索引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们有OCRed数千页的报纸文章.每页的报纸,发行,日期,页码和OCRed文本已放入mySQL数据库中.
We have OCRed thousands of pages of newspaper articles. The newspaper, issue, date, page number and OCRed text of each page has been put into a mySQL database.
我们现在想在PHP中构建类似于Google的搜索引擎,以查找具有查询条件的页面.它必须要快,并且搜索时间不超过一秒钟.
We now want to build a Google-like search engine in PHP to find the pages given a query. It's got to be fast, and take no more than a second for any search.
我们应该怎么做?
推荐答案
您还可以尝试 SphinxSearch . Craigslist使用sphinx,它可以连接到mysql和postgresql.
You can also try out SphinxSearch. Craigslist uses sphinx and it can connect to both mysql and postgresql.
这篇关于PHP/mySQL中类似Google的搜索引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文