Similarity Based Indexing