Home » Php » php – Zend Lucene or sphinx?

php – Zend Lucene or sphinx?

Posted by: admin July 12, 2020 Leave a comment


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

How to&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


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.