Redo index generation