Fixing elasticsearch configuration