search based on purchased_at