fixing doc2index mapping