Development

#4231 (highlight error: sfLuceneHighlighter "Undefined offset" - for repeted search keys)

You must first sign up to be able to contribute.

Ticket #4231 (new defect)

Opened 2 years ago

Last modified 2 years ago

highlight error: sfLuceneHighlighter "Undefined offset" - for repeted search keys

Reported by: cristianbaciu Assigned to: Carl.Vondrick
Priority: minor Milestone: plugins
Component: sfLucenePlugin Version:
Keywords: Cc:
Qualification: Unreviewed

Description

If we search for let say "home & home office" only home is highlighted. error is in sfLuceneHighlighter.class.php in function prepare change this line:

//line #72
$this->keywords = array_unique($this->keywords);

to

$this->keywords = array_values(array_unique($this->keywords));

Change History

08/20/08 12:36:13 changed by cristianbaciu

  • summary changed from sfLuceneHighlighter "Undefined offset" - repeted search keys to highlight error: sfLuceneHighlighter "Undefined offset" - for repeted search keys.

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.