def METHOD_NAME():
    to_search = request.form.get('to_search')
    search_type = request.form.get('search_type', 'id')
    case_sensitive = request.form.get('case_sensitive')
    case_sensitive = bool(case_sensitive)
    page = request.form.get('page', 1)
    try:
        page = int(page)
    except (TypeError, ValueError):
        page = 1
    return redirect(
        url_for('objects_title.objects_title_search', search=to_search, page=page,
                search_type=search_type, case_sensitive=case_sensitive))