update elasticsearch to 1.2.1

what about this removed code, parsing errors here are not possible anymore?