Chapter 9. Searching

This chapter covers
  • The Zend_Search_Lucene component
  • How to add a search page to a real-world application
  • The Observer pattern and how it helps code separation

One feature that separates an excellent website from a mediocre one is search. It doesn’t matter how good your navigation system is, your users are used to Google and expect that they can search your website to find what they’re looking for. If they can’t search, or if the search doesn’t return useful results, they’ll try another site and another until they find one that does. A good search system is hard to write, but Zend Framework provides the Zend_Search_Lucene component to make it easier.

In this chapter, we’ll look at how search should work for the user and ...

Get Zend Framework in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.