(index_cname, doc, delete=False, es_merge_update=False)
return send_to_es(
        index_info=index_info,
        doc_type=index_info.type,
        doc_id=doc_id,
        es_getter=get_es_new,
        name="{}.{} <{}>:".format(send_to_elasticsearch.__module__,
                                  send_to_elasticsearch.__name__, index_cname),
        data=doc,
        delete=delete,
        es_merge_update=es_merge_update,
    )
Utility method to update the doc in elasticsearch.
    Duplicates the functionality of pillowtop but can be called directly.
Utility method to update the doc in elasticsearch.
    Duplicates the functionality of pillowtop but can be called directly.
Utility method to update the doc in elasticsearch . Duplicates the functionality of pillowtop but can be called directly .
def send_to_elasticsearch(index_cname, doc, delete=False, es_merge_update=False):
    """
    Utility method to update the doc in elasticsearch.
    Duplicates the functionality of pillowtop but can be called directly.
    """
    doc_id = doc['_id']
    if isinstance(doc_id, bytes):
        doc_id = doc_id.decode('utf-8')
    index_info = registry_entry(index_cname)
    return send_to_es(
        index_info=index_info,
        doc_type=index_info.type,
        doc_id=doc_id,
        es_getter=get_es_new,
        name="{}.{} <{}>:".format(send_to_elasticsearch.__module__,
                                  send_to_elasticsearch.__name__, index_cname),
        data=doc,
        delete=delete,
        es_merge_update=es_merge_update,
    )
def send_to_elasticsearch ( index_cname , doc , delete = False , es_merge_update = False ) : doc_id = doc [ '_id' ] if isinstance ( doc_id , bytes ) : doc_id = doc_id . decode ( 'utf-8' ) index_info = registry_entry ( index_cname ) return send_to_es ( index_info = index_info , doc_type = index_info . type , doc_id = doc_id , es_getter = get_es_new , name = "{}.{} <{}>:" . format ( send_to_elasticsearch . __module__ , send_to_elasticsearch . __name__ , index_cname ) , data = doc , delete = delete , es_merge_update = es_merge_update , )