Hi,

maybe I'm missing a system requirement, but on my site, the mighlight.module doesn't highlight anything. E.g., I'd like to use it with SQL Search, but the results are not highlighted.

Configs: Drupal 5.1, MySQL 4.0.24, PHP 4.3.10-18, Apache 2.0.54; OS Debian GNU/Linux "Stable".

Modules "SQL search" and "highlight" are activated; in admin/settings/highlight, "Replacement string" is <strong class="highlight">%key%</strong>; "Allow external sites to highlight" is unchecked, "Use Module CSS" is checked.

I read in the README.txt that I'm supposed to add the filter to some "input formats" but couldn't figure out the connection between _input_ formats and the _output_ of a search query. However, adding the "Highlight input format" to my default input format's filter chain didn't result in any highlighting.

I'm pretty lost - any ideas?

Thanks & greetings, -asb

Comments

Andreas Wolf’s picture

Hi,

maybe the missing requirement is that you have to click on a search result - THEN the word you've searched for is highlighted.

See README.TXT:
Additionally, the module will pick up search terms from search/node/myTerm and highlight instances of myTerm on the node page.

It says node page, not search result page.
(Frankly speaking I expected too, that the results on the search page would be hightlighted.)

You can highlight the words on the search result page by customizing it.

gold’s picture

Version: 5.x-1.x-dev » 7.x-1.x-dev

README.txt isn't that helpful. This is also still an issue with my install on D7.

gold’s picture

Status: Active » Closed (cannot reproduce)

Ah! My bad. This is working well for me.

The issue was with the regex. I tested using http://regexpal.com/ and found it wasn't working. Tweaking here and copy/pasting the working one to the local search patterns worked fine.

Given this was originally aimed at D5, hadn't been mentioned as an issue in D6 and is working in D7 I'm closing this issue.