From Semantic Retrieval to Pairwise Ranking: Applying Deep Learning in E-commerce Search