Update tf and the index similarity