original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Close current index and free resources
docstring_tokens: Close current index and free resources