3 /* cron script to perform all the periodic search tasks
6 * updates the index by pruning deleted documents
9 * updates document info in the index if the document has been modified since indexing
12 * adds documents created since the last index run
15 require_once('../config.php');
16 require_once("$CFG->dirroot/search/lib.php");
18 if (empty($CFG->enableglobalsearch
)) {
19 error('Global searching is not enabled.');
22 mtrace("<pre>Starting cron...\n");
24 mtrace("--DELETE----");
25 require_once("$CFG->dirroot/search/delete.php");
26 mtrace("--UPDATE----");
27 require_once("$CFG->dirroot/search/update.php");
28 mtrace("--ADD-------");
29 require_once("$CFG->dirroot/search/add.php");
30 mtrace("------------");
32 mtrace("cron finished.</pre>");