We have looked in detail at the way Zend_Search_Lucene works and how to
queries can be either a simple string in the same manner as a Google search or programmatically constructed
using the rich API provided to allow for very complex queries to be performed.
To put Zend_Search_Lucene in context, we have also integrated search into the Places community
website. As a worked example, Places is relatively simplistic as it only as one model that requires indexing.
However, we have future-proofed our code using the Observer pattern to separate the search indexing from the
models where the data is stored. The result is a search engine that performs a ranked search algorithm which
helps your users find the information they are looking for quickly with all the benefits that this brings to your
website.
Licensed to Menshu You
Zend Framework in Action (Ch010) Manning Publications Co. 1
9
Email
While waiting to meet my kids off the school bus, I was chatting to a neighbour who commented that the kind
of work I was doing was the "way of the future". As I pondered over that comment, I realised an irony in the
fact that amongst the technologies of the future is one that, at around forty years old, is actually older than I
am!
PHP has a reasonably diverse range of functions for dealing with mail, from its mail() function, which
most all PHP programmers of any level are sure to be familiar with, to its IMAP, POP3 and NNTP functions.
Pages:
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244