fixed elasticsearch->dir