fix table name for deletion of indexes before regeneration

This commit is contained in:
diml 2007-11-20 23:22:56 +00:00
parent 6e97bc0808
commit a602e1bc68

View File

@ -101,7 +101,7 @@ if (!$dbcontrol->checkDB()) {
*/
// New regeneration
mtrace("Deleting old index entries.");
delete_records('search_documents');
delete_records(SEARCH_DATABASE_TABLE);
//begin timer
search_stopwatch();
@ -192,12 +192,12 @@ mtrace(".<br/><a href='index.php'>Back to query page</a>.");
mtrace('</pre>');
//finished, turn busy flag off
set_config("search_indexer_busy", "0");
set_config('search_indexer_busy', '0');
//mark the time we last updated
set_config("search_indexer_run_date", time());
set_config('search_indexer_run_date', time());
//and the index size
set_config("search_index_size", (int)$index->count());
set_config('search_index_size', (int)$index->count());
?>