Upgrade elasticsearch to 1.x