Simple Search Using Zend_Search_Lucene

This article illustrates a simple implementation of search process using Zend_Search_Lucene.
You can see it on the demonstration site.

1.Create Search Process Wrapper Class
Create the file library/My/Search/Lucene.php with the following content.
This class searches local files which is published on the web.
2.Create Controller
Create the file application/constorllers/Lucene.php with the following content.
Please modify the constants according to your environment.
3.Create Views
Create the file application/views/scripts/lucene/index.phtml with the following content.

Create the file application/views/scripts/lucene/create.phtml with the following content.

Create the file application/views/scripts/lucene/search.phtml with the following content.

Access the web server and check that you can create index files and search some text.
Date Content
2009/1/15 Published

Leave a Reply

Your email address will not be published.