Issue Type: Improvement Created: 2008-08-29T06:59:39.000+0000 Last Updated: 2009-04-27T17:27:03.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)
Reporter: Tomáš Fejfar (tomas.fejfar@gmail.com) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene
Related issues: Attachments:
When using Lucene, I usualy need to hightlight the search therms ONLY in the actual text gathered from query hit. Now the highlightMatches() method expects me to input the whole bunch of HTML including header. Otherwise it can't make the UTF-8 encoding work...
Returning error message: Warning: DOMDocument::saveHTML(): output conversion failed due to conv error in /srv/.../www/web/library/Zend/Search/Lucene/Document/Html.php on line 339 Warning: DOMDocument::saveHTML(): Bytes: 0x83 0xC2 0xAD 0x20 in /srv/.../www/web/library/Zend/Search/Lucene/Document/Html.php on line 339
Posted by Alexander Veremyev (alexander) on 2009-04-27T17:27:02.000+0000
Done.
Zend_Search_Lucene_Search_Query class has an additional htmlFragmentHighlightMatches() method now.
encoding also can be specified separately using optional parameters of highlightMatches() and htmlFragmentHighlightMatches() methods.