Changeset 8586
- Timestamp:
- 04/21/08 21:39:26 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfSearchPlugin/trunk/doc/00 - Quick Start.xt
r8572 r8586 54 54 ))); 55 55 $bookService->addRetort(new xfRetortField); 56 $bookService->addRetort(new xfRetortRoute r('book/preview?isbn=$isbn$'));56 $bookService->addRetort(new xfRetortRoute('book/preview?isbn=$isbn$')); 57 57 58 58 $this->getServiceRegistry()->register($bookService); 59 59 } 60 }}} 61 62 To have sfSearch automatically update your model when you save or delete it, open {{{ lib/model/Book.php }}} and append the following to the bottom of the class declaration: 63 64 {{{ 65 xfPropelBehavior::register('Book', array('MySearchIndex')); 60 66 }}} 61 67 … … 105 111 We are now ready to start searching the index. 106 112 113 == Clear Cache == 114 {{{ 115 symfony cc 116 }}} 117 107 118 === Populate Index === 108 119 Build the index: