Hi,

I would like to change default hard coded formatting - highlight colors and
element <p>highlight textx</p> of highlightMatches function in
Zend_Search_Lucene. I found that colors are defined in:

abstract class Zend_Search_Lucene_Search_Query
{
....
    private $_highlightColors = array('#66ffff', '#ff66ff'....);

...}

I would like to somehow extend/override default formating style - change
colors and drop <p> tag.

my search code:

$query = Zend_Search_Lucene_Search_QueryParser::parse($searchString);           
$results = $index->find($query);
...
echo $query->highlightMatches($result->Title);


I am newbie and I do not know how to solve it. Looking forward for your
help.
Jan
-- 
View this message in context: 
http://www.nabble.com/How-to-override-highlightMatches-style-in-Zend_Search_Lucene-tp22268258p22268258.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to