/** * @param Zend_Feed_Rss $rss */ private function processRss($rss) { $this->addField(Zend_Search_Lucene_Field::UnIndexed('id', $this->id)); $this->addField(Zend_Search_Lucene_Field::UnIndexed('url', $this->url)); $this->addField(Zend_Search_Lucene_Field::Text('title', $rss->title())); $this->addField(Zend_Search_Lucene_Field::Text('description', $rss->description())); // Loop over each channel item and store relevant data $text = ''; foreach ($rss as $item) { $text .= $item->title(); $text .= ' '; $text .= $item->description(); } $this->addField(Zend_Search_Lucene_Field::Text('body', $text)); }