您建议使用哪种方式使用 php 进行 zend lucene 搜索或使用 lucene 本身并使用 php 进行移植?
我们正在开发一个分类网站,您可能已经知道我们需要一个非常好的搜索引擎。左侧的过滤菜单是我们项目中必须的。无论如何,我问我们是否应该使用 zend lucene 或者我们应该自己安装 lucene 服务器并将我们的搜索文件与其 api 连接?我找不到任何性能/基准比较结果,想在这里询问。我想听听您在以下方面的意见:限制、优点、缺点..
We are in development of a classifieds website, which you might already know that we need a really good search engine. Filtering menu on the left side is a MUST in our project. Anyway, I am asking if we should use zend lucene or we should install lucene server ourselves and connect our search file with its api? I couldnt find any performance/benchmark comparison results and wanted to ask here. I would like to hear your opinions in terms of : limits, advantages,disadanteges ..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据我的经验,Zend Lucene 适合少量数据,但随着添加更多数据,速度会很快减慢。我必须研究 zend lucene 的新替代品,因为它的性能不足以满足我当前的项目。长话短说,我们选择了 Solr,它基于 Apache Lucene 构建。 70k 多篇文章的索引从几小时缩短到几分钟。
我应该补充一点,Sphinx 在我的决定中紧随其后,值得一看。
In my experience Zend Lucene is good for small amounts of data, but slows down very quick as you add more data. I had to research a new alternative to zend lucene because it's performance just wasn't cutting it on my current project. To make a long story short, we went with Solr, which is built on Apache Lucene. Indexing of 70k + articles went from hours to minutes.
I should add that Sphinx came in a close second in my decision and would be worth a look.
我会建议 Solr - 它需要最少的安装工作并且有一个 PHP 接口。它还内置了对faceting(侧面的过滤器)的支持,并且非常快速且可扩展。
I will suggest Solr - it will need minimal effort to install and has a PHP interface. It also has in-built support for faceting (the filters on the side) and is quite fast and scalable.