improve debugging of elasticsearch metadata index