protected function getIndex()
	{
		if (!$this->index) {
			$path = rtrim(Config::get('search.connections.zend.path'), '/') . '/' . $this->name;
			
			try {
				$this->index = \ZendSearch\Lucene\Lucene::open($path);
			} catch (\ZendSearch\Exception\ExceptionInterface $e) {
				$this->index = \ZendSearch\Lucene\Lucene::create($path);
			} catch (\ErrorException $e) {
				if (!file_exists($path)) {
					throw new \Exception(
						"'path' directory does not exist for the 'zend' search driver: '"
						. rtrim(Config::get('search.connections.zend.path'), '/')
						. "'"
					);
				}
				throw $e;
			}
			
			\ZendSearch\Lucene\Analysis\Analyzer\Analyzer::setDefault(
				new \ZendSearch\Lucene\Analysis\Analyzer\Common\Utf8Num\CaseInsensitive()
			);
		}
		
		return $this->index;
	}
protected function getIndex()
	{
		if (!$this->index) {
			$path = rtrim(Config::get('search.connections.zend.path'), '/') . '/' . $this->name;
			
			try {
				$this->index = \ZendSearch\Lucene\Lucene::open($path);
			} catch (\ZendSearch\Exception\ExceptionInterface $e) {
				$this->index = \ZendSearch\Lucene\Lucene::create($path);
			} catch (\ErrorException $e) {
				if (!file_exists($path)) {
					throw new \Exception(
						"'path' directory does not exist for the 'zend' search driver: '"
						. rtrim(Config::get('search.connections.zend.path'), '/')
						. "'"
					);
				}
				throw $e;
			}
			
			\ZendSearch\Lucene\Analysis\Analyzer\Analyzer::setDefault(
				new \ZendSearch\Lucene\Analysis\Analyzer\Common\Utf8Num\CaseInsensitive()
			);
		}
		
		return $this->index;
	}
protected function getIndex ( ) { if ( ! $ this -> index ) { $ path = rtrim ( Config :: get ( 'search.connections.zend.path' ) , '/' ) . '/' . $ this -> name ; try { $ this -> index = \ ZendSearch \ Lucene \ Lucene :: open ( $ path ) ; } catch ( \ ZendSearch \ Exception \ ExceptionInterface $ e ) { $ this -> index = \ ZendSearch \ Lucene \ Lucene :: create ( $ path ) ; } catch ( \ ErrorException $ e ) { if ( ! file_exists ( $ path ) ) { throw new \ Exception ( "'path' directory does not exist for the 'zend' search driver: '" . rtrim ( Config :: get ( 'search.connections.zend.path' ) , '/' ) . "'" ) ; } throw $ e ; } \ ZendSearch \ Lucene \ Analysis \ Analyzer \ Analyzer :: setDefault ( new \ ZendSearch \ Lucene \ Analysis \ Analyzer \ Common \ Utf8Num \ CaseInsensitive ( ) ) ; } return $ this -> index ; }
Get the ZendSearch lucene index instance associated with this instance.

@return \ZendSearch\Lucene\Index
Get the ZendSearch lucene index instance associated with this instance .