ZF-6574: Searching with ? in conjunction with highlightMatches throws warning Wrong parameter count for array_merge() in Search\Lucene\Document\Html.php on line 400
Description
When searching using ? as a placeholder e.x. "nic?s" using the highlightMatches Method throws a warning: Wrong parameter count for array_merge() in xxx\Search\Lucene\Document\Html.php on line 400
line 400 is: $wordsToHighlight = call_user_func_array('array_merge', $wordsToHighlightList);
My Fast-Fix: $wordsToHighlight=array(); if (count($wordsToHighlightList)>0) $wordsToHighlight = call_user_func_array('array_merge', $wordsToHighlightList);
Comments
Posted by Martin Smallridge (snailnet) on 2009-07-31T16:29:36.000+0000
Same thing also happens with * so it's all wildcard searches that hit this problem when used in conjunction with a term hilighting.
I can confirm that the fast-fix worked perfectly so my thanks for that.
Posted by Corvus Corax (corvuscorax) on 2009-09-02T08:03:16.000+0000
gets duplicated and possibly fixed by ZF-7519
Posted by Rob Allen (rob) on 2012-11-20T20:53:00.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.