fix search command when no index option is passed

This commit is contained in:
Gunther Konig 2012-08-10 11:40:01 +03:00
commit 3cdfcf1cea
2 changed files with 4 additions and 3 deletions

View file

@ -13,10 +13,10 @@ class IndexManager
* @param array $indexesByName
* @param string $defaultIndexName
*/
public function __construct(array $indexesByName, $defaultIndexName)
public function __construct(array $indexesByName, $defaultIndex)
{
$this->indexesByName = $indexesByName;
$this->defaultIndexName = $defaultIndexName;
$this->defaultIndexName = $defaultIndex->getName();
}
/**