protected function execute($arguments = array(), $options = array()) { $app = $arguments['application']; $index = $arguments['index']; $culture = $arguments['culture']; $model = $arguments['model']; $offset = $options['offset']; $limit = $options['limit']; $this->checkAppExists($app); $this->standardBootstrap($app, $options['env']); if (sfConfig::get('sf_orm') != 'doctrine') { throw new LogicException('This feature is only implemented for Doctrine ORM'); } sfLucene::initIndex($index, $culture); $instance = sfLucene::getInstance($index, $culture, false); $this->setupEventDispatcher($instance); $this->rebuild($instance, $model, $offset, $limit); }