public function index($index = null)
	{
		if (null === $index) {
			$index = Config::get('search.default_index', 'default');
		}
		
		if (!isset($this->indexes[$index])) {
			$this->indexes[$index] = Index::factory($index, $this->driver);
		}
		
		return $this->indexes[$index];
	}
public function index($index = null)
	{
		if (null === $index) {
			$index = Config::get('search.default_index', 'default');
		}
		
		if (!isset($this->indexes[$index])) {
			$this->indexes[$index] = Index::factory($index, $this->driver);
		}
		
		return $this->indexes[$index];
	}
public function index ( $ index = null ) { if ( null === $ index ) { $ index = Config :: get ( 'search.default_index' , 'default' ) ; } if ( ! isset ( $ this -> indexes [ $ index ] ) ) { $ this -> indexes [ $ index ] = Index :: factory ( $ index , $ this -> driver ) ; } return $ this -> indexes [ $ index ] ; }
Return the instance associated with the requested index name.
Will create one if needed.

@param string $index

@return \Mmanos\Search\Index
Return the instance associated with the requested index name . Will create one if needed .