ZF-11207: Zend Framework Lucene index only within a certain tag
Got a little blocker. new to the zend framework and so far i like it!
What i have done: - got a tool running that crawls the website and puts it in into a sitemap for google to pick up. - I use $doc = Zend_Search_Lucene_Document_Html::loadHTMLFile($item->loc, true); $doc->addField(Zend_Search_Lucene_Field::Text('link', $item->loc)); $index->addDocument($doc);
To build an index and with the true option in loadHTMLFile i can print the output with $body.
Unfortunatly the body IS what i need but not everyting. I would like to get the context within for exemple
and nothing outside that.
I've been search the internet for a solution for over 5 days, but nobody has the same issue because they all get it directly from a database. Is this even possible? and if so... is it documented?
Hope you guys/girls can get me into the right direction!