Fixing elasticsearch hash access