Fix configuration of elasticsearch