(index_cname, ids)
Returns a generator which pulls documents from elasticsearch in chunks
Returns a generator which pulls documents from elasticsearch in chunks
Returns a generator which pulls documents from elasticsearch in chunks
def iter_es_docs(index_cname, ids):
    """Returns a generator which pulls documents from elasticsearch in chunks"""
    for ids_chunk in chunked(ids, 100):
        yield from mget_query(index_cname, ids_chunk)
def iter_es_docs ( index_cname , ids ) : for ids_chunk in chunked ( ids , 100 ) : yield from mget_query ( index_cname , ids_chunk )