changes reindexing strategy : deletes records rather than create back table

checkDB() and checkTableExists() in indexlib.php are obsolete
table name synced with search block install.xml table name
This commit is contained in:
diml 2007-09-12 21:22:15 +00:00
parent b1b6ebf437
commit cf8ef35e5f
2 changed files with 8 additions and 2 deletions

View file

@ -93,9 +93,15 @@ else {
$index = new Zend_Search_Lucene($index_path, true);
/*
OBSOLETE REGENERATION - DB installs with search block by now
if (!$dbcontrol->checkDB()) {
search_pexit("Database error. Please check settings/files.");
}
*/
// New regeneration
mtrace("Deleting old index entries.");
delete_records('search_documents');
//begin timer
search_stopwatch();