public function getRegistered($indexName)
	{
		if (!$this->isRegistered($indexName)) {
			throw new Exception('Index ['.$indexName.'] could not be found in the register of the indices manager.');
		}

		return $this->indices[$indexName];
	}
public function getRegistered($indexName)
	{
		if (!$this->isRegistered($indexName)) {
			throw new Exception('Index ['.$indexName.'] could not be found in the register of the indices manager.');
		}

		return $this->indices[$indexName];
	}
public function getRegistered ( $ indexName ) { if ( ! $ this -> isRegistered ( $ indexName ) ) { throw new Exception ( 'Index [' . $ indexName . '] could not be found in the register of the indices manager.' ) ; } return $ this -> indices [ $ indexName ] ; }
Get a registered index. When not found it will throw an exception.
If you do not want the exception being thrown, use getRegistered first.

@return AbstractIndex
@throws Exception

@param string $indexName
Get a registered index . When not found it will throw an exception . If you do not want the exception being thrown use getRegistered first .