コード例 #1
0
ファイル: Lucene.php プロジェクト: tejdeeps/tejcs.com
 /**
  * Object destructor
  */
 public function __destruct()
 {
     $this->commit();
     if ($this->_closeDirOnExit) {
         $this->_directory->close();
     }
 }
コード例 #2
0
 /**
  * Object destructor
  */
 public function __destruct()
 {
     $this->commit();
     // Free shared lock
     $this->_lock->unlock();
     if ($this->_closeDirOnExit) {
         $this->_directory->close();
     }
 }
コード例 #3
0
ファイル: Lucene.php プロジェクト: josephholsten/swaplady
 /**
  * Close current index and free resources
  *
  * @internal
  */
 public function close()
 {
     $this->commit();
     // Free shared lock
     $this->_lock->unlock();
     if ($this->_closeDirOnExit) {
         $this->_directory->close();
     }
     $this->_directory = null;
     $this->_writer = null;
     $this->_segmentInfos = null;
 }
コード例 #4
0
ファイル: Lucene.php プロジェクト: ismaelmelus/home
 /**
  * Close current index and free resources
  */
 private function _close()
 {
     if ($this->_closed) {
         // index is already closed and resources are cleaned up
         return;
     }
     $this->commit();
     if ($this->_closeDirOnExit) {
         $this->_directory->close();
     }
     $this->_directory = null;
     $this->_writer = null;
     $this->_segmentInfos = null;
     $this->_closed = true;
 }
コード例 #5
0
ファイル: Lucene.php プロジェクト: gauravstomar/Pepool
 /**
  * Close current index and free resources
  */
 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;
 }
コード例 #6
0
ファイル: Lucene.php プロジェクト: jorgenils/zend-framework
 /**
  * Close current index and free resources
  *
  * @internal
  */
 public function close()
 {
     if ($this->_closed) {
         // index is already closed and resources are cleaned up
         return;
     }
     $this->commit();
     // Free shared lock
     $this->_lock->unlock();
     if ($this->_closeDirOnExit) {
         $this->_directory->close();
     }
     $this->_directory = null;
     $this->_writer = null;
     $this->_segmentInfos = null;
     $this->_closed = true;
 }