Upgrade the elasticsearch library to the latest version