Problem
Search results would not return results if the original string was followed by punctuation.

Solution
Examining the search_index table reveals that puncuation was not being parsed out of the word list.

In the code to search.module

line:257 is:

 $keys = preg_replace("'(!|%|,|:|;|\(|\)|\&|\"|\'|\.|-|\/|\?|\\\)'", '', $keys);

and I think it should be:

$wordlist = preg_replace("'(!|%|,|:|;|\(|\)|\&|\"|\'|\.|-|\/|\?|\\\)'", '', $wordlist);

This has it least fixed the indexing problem for me.

mitomac

Comments

Steven’s picture

Committed to 4.5.

Anonymous’s picture