update elasticsearch script