(request, domain, app_id)
return HttpResponse(fixtures, content_type="text/xml; charset=utf-8")
Accepts search criteria as GET params, e.g. "https://www.commcarehq.org/a/domain/phone/search/?a=b&c=d"
        Daterange can be specified in the format __range__YYYY-MM-DD__YYYY-MM-DD
        Multiple values can be specified for a param, which will be searched with OR operator

    Returns results as a fixture with the same structure as a casedb instance.
Accepts search criteria as GET params, e.g. "https://www.commcarehq.org/a/domain/phone/search/?a=b&c=d"
        Daterange can be specified in the format __range__YYYY-MM-DD__YYYY-MM-DD
        Multiple values can be specified for a param, which will be searched with OR operator
Accepts search criteria as GET params e . g . https : // www . commcarehq . org / a / domain / phone / search / ?a = b&c = d Daterange can be specified in the format __range__YYYY - MM - DD__YYYY - MM - DD Multiple values can be specified for a param which will be searched with OR operator
def app_aware_search(request, domain, app_id):
    """
    Accepts search criteria as GET params, e.g. "https://www.commcarehq.org/a/domain/phone/search/?a=b&c=d"
        Daterange can be specified in the format __range__YYYY-MM-DD__YYYY-MM-DD
        Multiple values can be specified for a param, which will be searched with OR operator

    Returns results as a fixture with the same structure as a casedb instance.
    """
    request_dict = request.GET if request.method == 'GET' else request.POST
    try:
        cases = get_case_search_results_from_request(domain, app_id, request.couch_user, request_dict)
    except CaseSearchUserError as e:
        return HttpResponse(str(e), status=400)
    fixtures = CaseDBFixture(cases).fixture
    return HttpResponse(fixtures, content_type="text/xml; charset=utf-8")
def app_aware_search ( request , domain , app_id ) : request_dict = request . GET if request . method == 'GET' else request . POST try : cases = get_case_search_results_from_request ( domain , app_id , request . couch_user , request_dict ) except CaseSearchUserError as e : return HttpResponse ( str ( e ) , status = 400 ) fixtures = CaseDBFixture ( cases ) . fixture return HttpResponse ( fixtures , content_type = "text/xml; charset=utf-8" )