Zend Lucene 还是 sphinx?
我正在构建一个具有数百万条记录的数据库操作的系统。我在项目的所有部分都使用 Zend Framework。我想使用搜索索引技术,但是您对此有什么建议吗?我应该使用哪种技术?
提前致谢
I am building a system that has database operations that has millions of records.I am using Zend Framework in all part of my project.I wanted to use a search indexing technique but have you got any advice on this?which technique should i use?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Zend Lucene 与“数百万条记录”完全无关。
尝试使用sphinx http://sphinxsearch.com/docs/manual-1.10.html 。
它有许多有用的特点,包括对许多服务器的集群化;智能、可定制的结果排名等等。而且速度真的很快。
PHP API 文档: http://www.php.net/manual/en/book .sphinx.php
有 PHP API 的 C 版本 http://pecl.php.net /包/狮身人面像
Zend Lucene absolutely unrelevant for "millions of records".
Try to use sphinx http://sphinxsearch.com/docs/manual-1.10.html.
It has many usefull fratures, including clasterization to many servers; smart, customizable result ranking and much more. And it is really fast.
PHP API docs: http://www.php.net/manual/en/book.sphinx.php
There is C-version of PHP API http://pecl.php.net/package/sphinx
您绝对不想使用 Zend Framework 的 Lucene 实现来处理那么多记录。 Lucene 是个好主意,只是不是纯 PHP 版本。
查看 Solr 和 ElasticSearch,两个基于 Lucene 的搜索服务可能很适合您的需求。 ElasticSearch 开箱即用,实际上是零配置,令人难以置信。
You absolutely don't want to use Zend Framework's Lucene implementation for that many records. Lucene is a great idea, just not a pure-PHP version.
Check out Solr and ElasticSearch, two Lucene-based search services that may fit your needs well. ElasticSearch is incredibly usable right out of the box with effectively zero configuration.