Changeset 1336
- Timestamp:
- Sep 9, 2010, 10:54:33 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/lib/task/indexSolrTask.class.php
r1320 r1336 19 19 $this->addOption('env', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', 'test'); 20 20 $this->addOption('app', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', 'frontend'); 21 $this->addOption('removeAll', null, sfCommandOption::PARAMETER_OPTIONAL, 'Drop solr database (=no|yes no default)', 'no'); 21 22 22 23 $this->file_conf = sys_get_temp_dir().DIRECTORY_SEPARATOR."reindex_slor.db"; … … 33 34 34 35 $solr = new SolrConnector(); 36 37 if ($options['removeAll'] == 'yes') { 38 $solr->deleteAll(); 39 } 35 40 36 41 foreach(array("Parlementaire", "Commentaire", "QuestionEcrite", "Amendement", "Intervention") as $table) {
Note: See TracChangeset
for help on using the changeset viewer.