def bulk_load_docs(es, docs):
chunk_size = <NUM_LIT:200><EOL>try:<EOL><INDENT>results = elasticsearch.helpers.bulk(es, docs, chunk_size=chunk_size)<EOL>log.debug(f"<STR_LIT>")<EOL>if len(results[<NUM_LIT:1>]) > <NUM_LIT:0>:<EOL><INDENT>log.error("<STR_LIT>".format(results))<EOL><DEDENT><DEDENT>except elasticsearch.ElasticsearchException as e:<EOL><INDENT>log.error("<STR_LIT>".format(e))<EOL><DEDENT>
Bulk load docs

    Args:
        es: elasticsearch handle
        docs: Iterator of doc objects - includes index_name