I'd rename it to createIndex, since that describes what the function actually does