Issues

ZF-4115: Zend_Search_Lucene should offer hightlight() method to hightlight any string. Without DOM.

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:

Description

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

Comments

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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts