Closed (fixed)
Project:
Drupal core
Component:
search.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2005 at 20:02 UTC
Updated:
25 Jan 2005 at 05:15 UTC
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
Comment #1
Steven commentedCommitted to 4.5.
Comment #2
(not verified) commented