Upgrade elasticsearch to 1.0