Bumped es version to 1.2.0
Made index type optional