Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

phpRiot.com:
Creating a fulltext search engine with the Zend Framework's Zend_Search_Lucene
Apr 27, 2006 @ 12:10:20

phpRiot has posted an interesting new tutorial today that uses a framework that's become quite popular lately - the Zend Framework - and how to use it's Zend_Search_Lucene module to create a fulltext search engine.

This article covers the implementation of a fulltext search engine using PHP 5 and the Zend Framework. We will be using the Zend_Search_Lucene component to create and search our fulltext index.

To demonstrate this functionality, we will cover the implementation of a search engine into phpRiot. We previously used the Tsearch2 module but had some problems that we were unable to overcome.

They begin by explaining how a fulltext search works, via a combination of the indexing and the querys made. From there, they dive right in, grabbing the latest copy of the Framework and showing (briefly) how to configure it. They then set up the structure of the index you'll need to make it all work, and give you the complete code to fill it with data. And, of course, a data store is no good without a way to query it, so they give a basic example of doing just that.

They cap it all off with code that creates a basic search engine, builing on all of the previous code from the article

tagged: search engine zend framework zend_search_lucene search engine zend framework zend_search_lucene

Link:


Trending Topics: