Move index creation into ESServer