Similarity and Diversity in Information Retrieval