create the index from the schema