/** * @param Zend_Feed_Atom $atom */ private function processAtom($atom) { $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', $atom->title())); // Loop over each channel item and store relevant data $text = ''; foreach ($atom as $item) { $text .= $item->title(); $text .= ' '; $text .= $item->content(); } $this->addField(Zend_Search_Lucene_Field::Text('body', $text)); }