Understanding the link between social and search