Set similarity while indexing