Пример #1
0
 protected function createSearchAdapter()
 {
     if (!is_dir(__DIR__ . '/lucene')) {
         mkdir(__DIR__ . '/lucene');
     }
     $this->adapter = new ZendLuceneAdapter(__DIR__ . '/lucene', new Filesystem());
     $this->adapter->deindexAll();
     return $this->adapter;
 }
Пример #2
0
 public function deleteAll()
 {
     $this->storageAdapter->deleteAll();
     $this->searchAdapter->deindexAll();
 }