Ejemplo n.º 1
0
 private function _close()
 {
     if ($this->_closed) {
         // index is already closed and resources are cleaned up
         return;
     }
     $this->commit();
     // Release "under processing" flag
     Zend_Search_Lucene_LockManager::releaseReadLock($this->_directory);
     if ($this->_closeDirOnExit) {
         $this->_directory->close();
     }
     $this->_directory = null;
     $this->_writer = null;
     $this->_segmentInfos = null;
     $this->_closed = true;
 }
Ejemplo n.º 2
0
 private function _close()
 {
     if ($this->_closed) {
         return;
     }
     $this->commit();
     Zend_Search_Lucene_LockManager::releaseReadLock($this->_directory);
     if ($this->_closeDirOnExit) {
         $this->_directory->close();
     }
     $this->_directory = null;
     $this->_writer = null;
     $this->_segmentInfos = null;
     $this->_closed = true;
 }