Zend Framework 上的自定义搜索引擎
我们正在建立一个社交网络网站,该网站上有视频、用户个人资料和其他详细信息。该网站是使用 Zend Framework 开发的。它需要在此站点上开发站点搜索引擎功能。它需要索引网站中的所有数据并针对该数据进行搜索。
我检查了Sphider,但它在Zend Framework中使用起来并不容易。我尝试了 Sphinx,但这需要从终端进行大量配置。接下来我尝试的是 Zend Lucene 组件,它可以工作。但我无法在结果集中显示视频或个人资料图像。
请建议一种简单但功能强大的方法来在基于 Zend Framework 的网站内构建自定义搜索引擎。
We are building a Social Networking website and there are videos, user profiles and other details on the site. The site is developed using Zend Framework. It needs to develop a Site Search Engine feature on this site. It need to index all data in the website and search against that data.
I checked Sphider but it is not easy to use in Zend Framework. And I tried Sphinx but that needs lot of configuration from Terminal. Next I tried is Zend Lucene Component and it works. But I couldn't display the Videos or Profile Image on the result set.
Please suggest an easy but powerful method to build a Custom Search Engine inside website built on Zend Framework.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该看看如何设置 Solr 搜索服务器。它是 Lucene 的实现,但扩展性非常好。据我了解,Zend 的 Lucene 实现虽然适合少量数据,但扩展性不佳。
还有一个 PECL Solr 扩展,可以轻松从 PHP 进行访问,无论框架如何。
You should have a look at setting up a Solr search server. It is a Lucene implementation, but scales incredibly well. From my understanding Zend's Lucene implementation, while good for small amounts of data, does not scale well.
There is also a PECL Solr extension for easy access from PHP, regardless of framework.