Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Creating A Fulltext Search Engine In PHP 5 With The Zend Framework's Zend Search Lucene

Getting Started

The first thing we must do is install the Zend Framework. At time of writing, the current version is 1.0.3, which can be obtained from

You can choose to store the framework in your own application PHP class library, or you can store it in a shared location just as PEAR typically is. Just like Pear is stored in /usr/local/lib/php, I have chosen to store it in /usr/local/lib/zend for the purposes of this article.

Listing 1 listing-1.txt
$ cd /usr/local/src
$ wget
$ tar -zxf ZendFramework-0.1.3.tar.gz
$ mv ZendFramework-0.1.3/library /usr/local/lib/zend

So now all that is required is that we add /usr/local/lib/zend to our include path. For instance, my include path directive in httpd.conf for PhpRiot looks something like:

Listing 2 listing-2.txt
php_value include_path .:/var/www/

Which now becomes:

Listing 3 listing-3.txt
php_value include_path .:/var/www/

In This Article

Article History

Apr 27, 2006
Initial article version
Dec 17, 2007
Updated to use Zend Framework 1.0.3