something is wrong with the similarity calculaton in the indexer