Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zend Lucene or sphinx?

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

like image 272
Hüseyin BABAL Avatar asked Mar 17 '11 21:03

Hüseyin BABAL


2 Answers

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

like image 113
seriyPS Avatar answered Sep 24 '22 13:09

seriyPS


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.

like image 43
Charles Avatar answered Sep 22 '22 13:09

Charles