Deep Learning for Matching in Search and Recommendation