Changed the ES indexing script. Note: For now it is still incomplete