Browse files

fix table name for deletion of indexes before regeneration

  • Loading branch information...
1 parent 3b37251 commit 7bf21a506438a00568dc7bf0aefe6cac0e17313d diml committed Nov 20, 2007
Showing with 5 additions and 5 deletions.
  1. +5 −5 search/indexer.php
View
10 search/indexer.php
@@ -100,8 +100,8 @@
}
*/
// New regeneration
-mtrace("Deleting old index entries.");
-delete_records('search_documents');
+mtrace('Deleting old index entries.');
+delete_records(SEARCH_DATABASE_TABLE);
//begin timer
search_stopwatch();
@@ -192,12 +192,12 @@
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());
?>

0 comments on commit 7bf21a5

Please sign in to comment.