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

Issue Type: Patch Created: 2009-05-07T14:15:33.000+0000 Last Updated: 2012-11-20T20:53:00.000+0000 Status: Closed Fix version(s): Reporter: Daniel Schlichtholz (dsb) Assignee: None Tags: - Zend_Search_Lucene

Related issues: - ZF-7519



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);


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.

Have you found an issue?

See the Overview section for more details.


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

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