Skip to content

Commit 73f478a

Browse files
committed
fix: call tokenize with document encoding
1 parent cd06d48 commit 73f478a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • library/ZendSearch/Lucene/Document

library/ZendSearch/Lucene/Document/HTML.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ public function highlightExtended($words, $callback, $params = array())
414414
$wordsToHighlightList = array();
415415
$analyzer = Analyzer\Analyzer::getDefault();
416416
foreach ($words as $wordString) {
417-
$wordsToHighlightList[] = $analyzer->tokenize($wordString);
417+
$wordsToHighlightList[] = $analyzer->tokenize($wordString, $this->_doc->encoding);
418418
}
419419
$wordsToHighlight = call_user_func_array('array_merge', $wordsToHighlightList);
420420

0 commit comments

Comments
 (0)