chage deprecated facets query to use aggregations
updated proxy call back for dev