Cloud-based learning system for answer ranking