CHAPTER 12Implementing Site Search

The next step in the development of our web application is to provide a search tool for users to find content on the web site. Essentially what we will be doing is allowing people to search based on content in blog posts, as well as on tags that have been assigned to those posts.

Implementing site search consists of two major steps:

  • Creating and managing full-text indexes. Whenever a new post is created, we must add it to the index. Similarly, when a post is edited, the index must be updated accordingly, and if a post is deleted, then it must be removed from the index. We will be using the Zend_Search_Lucene component of the Zend Framework to manage these indexes.
  • Performing searches and displaying results ...

Get Practical Web 2.0 Applications with PHP now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.