Creating A Fulltext Search Engine In PHP 5 With The Zend Framework's Zend Search Lucene
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 http://framework.zend.com/download.
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.
$ cd /usr/local/src $ wget http://framework.zend.com/download/tgz $ 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:
php_value include_path .:/var/www/phpriot.com/include:/usr/local/lib/php
Which now becomes:
php_value include_path .:/var/www/phpriot.com/include:/usr/local/lib/php:/usr/local/lib/zend