public function normalizeParams(RequestHandler $handler, $params)
    {
        if (is_string($params)) {
            $params = array('q' => $params);
        } elseif (!is_array($params)) {
            $params = (array) $params;
        }
        return array_merge($handler->getDefaultParams(), $params);
    }