elasticsearch api changed due to upgrade