Learning Latent Vector Spaces for Product Search