change the create index to be two phases: create the index and add the mapping