Ignore:
Timestamp:
Sep 5, 2010, 1:58:20 AM (11 years ago)
Author:
teymour
Message:

Indexation des commentaires
+ amélioration de la tache d'indexation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/task/indexSolrTask.class.php

    r1274 r1319  
    3434    $solr = new SolrConnector();
    3535
     36    $solr->deleteAll();
    3637
    37     foreach(array("Parlementaire", "QuestionEcrite", "Amendement", "Intervention") as $table) {
     38    foreach(array("Parlementaire", "Commentaire", "QuestionEcrite", "Amendement", "Intervention") as $table) {
    3839      while (1) {
    3940        $q = Doctrine::getTable($table)
     
    5455          $this->state[$table] = $o->id;
    5556        }
     57        $solr->updateFromCommands();
    5658        $this->writeState();
    5759      }
    5860    }
     61    unlink($this->file_conf);
    5962  }
     63 
    6064}
Note: See TracChangeset for help on using the changeset viewer.