add support for reading ES index