generate_index inserts ideal initial data (#17247)