update elasticsearch to 1.2.2