Many developers--myself included--end up going crazy and running for the hills when they are asked to create a static website with full search functionality. Database searching is easy, even when you have to join multiple tables. But how would you create a comprehensive search system for a static website? This is a question that bugged me so much I eventually took a few hours to sit down and write the solution.
The article continues at http://wdvl.internet.com/Authoring/PHP/search/marc_plotz07212009.html