Verfasst: 03.01.2007 00:11
Das liegt vermutlich daran, dass auch der DB Maintenance Mod den Suchindex auf Basis des Standards neu Aufbaut -> der steht auf 20 Zeichen und muss auch umgestellt werden. Außerdem solltest du deine Datenbank kontrollieren, ob sie die Spalte auch auf VARCHAR(50) eingestellt hat. Sonst wird das mit dem finden zu langer Wörter evtl. schwierig...
in der admin/admin_db_maintenance.php findet sich folgende Codestelle:
Hier sind die Änderungen nötig (ich vermute mal die PHP Version ist neuer als 3, ansonsten würde es mich sehr wundern warum es nicht funktioniert hat.
Ersetze gegen folgendes:
Die andere, von Miriam beschriebene Änderung muss natürlich bestehen bleiben...
Außerdem bitte Backups machen....
in der admin/admin_db_maintenance.php findet sich folgende Codestelle:
Code: Alles auswählen
while ($row && ($post_size <= $board_config['dbmtnc_rebuildcfg_maxmemory'] * 1024 || $i < $board_config['dbmtnc_rebuildcfg_minposts']))
{
$last_post = $row['post_id'];
// handle text
$word_list = split_words(clean_words('post', $row['post_text'], $empty_array, $empty_array));
foreach ($word_list as $word)
{
// cutting of long words in functions_search.php seems not to work under some conditions - so check it again
if ( $word != '' && strlen($word) <= 20 )
{
$result_array[0][] = $last_post;
$result_array[1][] = 0;
$result_array[2][] = $word;
}
}
// handle subject
$word_list = split_words(clean_words('post', $row['post_subject'], $empty_array, $empty_array));
foreach ($word_list as $word)
{
// cutting of long words in functions_search.php seems not to work under some conditions - so check it again
if ( $word != '' && strlen($word) <= 20 )
{
$result_array[0][] = $last_post;
$result_array[1][] = 1;
$result_array[2][] = $word;
}
}
unset($word_list);
$row = $db->sql_fetchrow($result);
$i++;
$post_size += strlen($row['post_text']) + strlen($row['post_subject']);
}
Ersetze gegen folgendes:
Code: Alles auswählen
while ($row && ($post_size <= $board_config['dbmtnc_rebuildcfg_maxmemory'] * 1024 || $i < $board_config['dbmtnc_rebuildcfg_minposts']))
{
$last_post = $row['post_id'];
// handle text
$word_list = split_words(clean_words('post', $row['post_text'], $empty_array, $empty_array));
foreach ($word_list as $word)
{
// cutting of long words in functions_search.php seems not to work under some conditions - so check it again
if ( $word != '' && strlen($word) <= 50 )
{
$result_array[0][] = $last_post;
$result_array[1][] = 0;
$result_array[2][] = $word;
}
}
// handle subject
$word_list = split_words(clean_words('post', $row['post_subject'], $empty_array, $empty_array));
foreach ($word_list as $word)
{
// cutting of long words in functions_search.php seems not to work under some conditions - so check it again
if ( $word != '' && strlen($word) <= 50 )
{
$result_array[0][] = $last_post;
$result_array[1][] = 1;
$result_array[2][] = $word;
}
}
unset($word_list);
$row = $db->sql_fetchrow($result);
$i++;
$post_size += strlen($row['post_text']) + strlen($row['post_subject']);
}
Außerdem bitte Backups machen....