Reverting changes in ES indexing script