创建全文索引搜索
我创建了一个博客,希望搜索 MySQL 数据库中的某些表,然后在单独的搜索页面上为用户返回结果。我不想使用 Google CSE。我将如何为我的网站创建这个。我在 StackOverflow.com 上发现了一位朋友的帖子,他希望提高自己的效率。我该如何将他的搜索引擎应用到我的网站中?
他的代码 - 此处
I've created a blog and I wish to search through certain tables in my MySQL databases and then return results for the user on a separate search page. I do not wish to use Google CSE. How would I go about creating this for my site. I found a post on StackOverflow.com from a friend of mine in which he wished to make his more efficient. How would I go about implementing his search engine into my site?
His Code - Here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您仅限于 SQL 吗?有很多软件比任何关系数据库引擎更适合文本搜索。 Sphinx、Lucene、Xapian,仅举几例。
编辑
MySQL 还具有一些全文索引功能。 您可能想查看一下。
Are you limited to SQL? There is a lot of software better suitable for text search than any relational database engine. Sphinx, Lucene, Xapian, just to name few.
EDIT
MySQL has some full-text indexing capabilities as well. You may want to check them out.