connecting reader to elastic indexer