concrete/src/Search/Index/DefaultManager.php
public function addIndex($type, $index)
    {
        if (!isset($this->indexes[$type])) {
            $this->indexes[$type] = [];
        }

        $this->indexes[$type][] = $index;
    }
public function addIndex($type, $index)
    {
        if (!isset($this->indexes[$type])) {
            $this->indexes[$type] = [];
        }

        $this->indexes[$type][] = $index;
    }
public function addIndex ( $ type , $ index ) { if ( ! isset ( $ this -> indexes [ $ type ] ) ) { $ this -> indexes [ $ type ] = [ ] ; } $ this -> indexes [ $ type ] [ ] = $ index ; }
Add an index to this manager
@param string $type The type to index. Use DefaultManager::TYPE_ALL to apply to all types.
@param IndexInterface|string $index
Add an index to this manager