added avg(rating) to ad_search)