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;
    }
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;
    }
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 ; }
Close current index and free resources
Close current index and free resources