Ejemplo n.º 1
0
 /**
  * To make indexation faster do only one flush instead of several
  */
 protected function indexEntities()
 {
     $this->searchEngine->setNeedFlush(false);
     parent::indexEntities();
     $this->searchEngine->flush();
     $this->searchEngine->setNeedFlush(true);
 }