By videojunky on
Alright I was playing around with the search module before to change the look of the ouput to something a little more friendly.
I got some errors so I went back to the backups i made before I changed anything.
I get this new error which is absolutly weird:
warning: Unknown modifier ''' in /home/******/public_html/modules/search.module on line 273.
line 269-273 is:
// Remove "noise words".
$noise = explode(',', variable_get('noisewords', ''));
foreach ($noise as $word) {
$word = trim($word);
$wordlist = trim(preg_replace("' $word '", ' ', ' ' .$wordlist. ' '));
}
This is using the cron.php file to rebuild my search index. The error appears about 1/3 of the time. I'm not sure if this is the correct method to rebuild the list but ethier way after clearing that database table and running cron there error might poppup but the table is left empty.
Comments
noise words
alright i fixed the error, i checked my noise words for ' and i had "it's" in there by accident
So that fixes the error but my index is fully updating
for instance i added a new article about "surfers" searched it and it was found. But i already have 2 past articles with a specific keyword "nuke" and only 1 of them is returned. theres no commas or periods next to the keyword so both should be returned, right?
Please post if you have any suggestions.
after searching a little
after searching a little deeper in the drupal forums i did the following:
Emptied my search_index table
set the two variables (comments_last_cron, node_last_cron) to i:0000000000;
UPDATE `node` SET `changed`=UNIX_TIMESTAMP(NOW());
which set all my content to being changed as of "now".
Ran cron.php
Everything reindexed fine
only problem now, will the keyword missing presist or will adding content and running cron on a frequent schedual work out.