root/trunk/batch/reindex_questions.php

Revision 71, 471 bytes (checked in by fabien, 3 years ago)

upgrade to 0.6 (step 3)

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 define('SF_ROOT_DIR',    realpath(dirname(__FILE__).'/..'));
4 define('SF_APP',         'frontend');
5 define('SF_ENVIRONMENT', 'dev');
6 define('SF_DEBUG',       true);
7
8 require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
9
10 sfContext::getInstance();
11
12 $questions = QuestionPeer::doSelect(new Criteria());
13 foreach ($questions as $question)
14 {
15   $question->updateSearchIndex();
16 }
17
18 ?>
Note: See TracBrowser for help on using the browser.