def get_params_to_search(context)
      if params[:saved_search].present?
        @saved_search = SavedSearch.find_by(id: params[:saved_search], context: context)
      end
      return params[:q] if params[:use_search_params].present?
      params[:q] = @saved_search.try(:search_params) || params[:q]
    end
def get_params_to_search(context)
      if params[:saved_search].present?
        @saved_search = SavedSearch.find_by(id: params[:saved_search], context: context)
      end
      return params[:q] if params[:use_search_params].present?
      params[:q] = @saved_search.try(:search_params) || params[:q]
    end
Return params of Saved Search or search form params