Fixing elasticsearch in production