def _get_bulk(doc):
            if self._host_major_ver >= 7:
                doc = {
                    '_op_type': 'update',
                    "_index": index_name,
                    "_id": doc['_id'],
                    "doc": doc
                }
            else:
                doc = {
                    '_op_type': 'update',
                    "_index": index_name,
                    "_type": doc_type,
                    "_id": doc['_id'],
                    "doc": doc
                }
            if upsert:
                doc['doc_as_upsert'] = True
            return doc