public function type($type)
    {
        $this->params['type'] = array();
        $args                 = func_get_args();
        foreach ($args as $arg) {
            $this->params['type'][] = $arg;
        }

        return $this;
    }
public function type($type)
    {
        $this->params['type'] = array();
        $args                 = func_get_args();
        foreach ($args as $arg) {
            $this->params['type'][] = $arg;
        }

        return $this;
    }
public function type ( $ type ) { $ this -> params [ 'type' ] = array ( ) ; $ args = func_get_args ( ) ; foreach ( $ args as $ arg ) { $ this -> params [ 'type' ] [ ] = $ arg ; } return $ this ; }
Set the type to operate on

@param  string       $type     indices to operate on
@param  string       $type,... indices to operate on

@return IndexRequest
Set the type to operate on