def appstore_api(request):
    (params, facets) = parse_args_for_es(request)
    results = es_snapshot_query(params, facets)
    return HttpResponse(json.dumps(results), content_type='application/json')
def appstore_api(request):
    (params, facets) = parse_args_for_es(request)
    results = es_snapshot_query(params, facets)
    return HttpResponse(json.dumps(results), content_type='application/json')