original_docstring: 
          Bulk index entities
  
          actions: list of tuples of (action, instance) to be included in the bulk
          batch_size: number of records for each bulk call
  
          All errors and exceptions are suppressed and are returned in the response report
  
          
docstring: Bulk index entities
  actions: list of tuples of (action, instance) to be included in the bulk
  batch_size: number of records for each bulk call
  
  All errors and exceptions are suppressed and are returned in the response report
docstring_tokens: Bulk index entities actions : list of tuples of ( action instance ) to be included in the bulk batch_size : number of records for each bulk call All errors and exceptions are suppressed and are returned in the response report
code: def bulk(self, actions, batch_size, **kwargs):
          """
          Bulk index entities
  
          actions: list of tuples of (action, instance) to be included in the bulk
          batch_size: number of records for each bulk call
  
          All errors and exceptions are suppressed and are returned in the response report
  
          """
          def to_dict(instance, op_type):
              if instance.id is None:
                  instance.id = self.new_object_id()
  
              instance._id = instance.id
              instance._index = self.get_index_name(**kwargs)
  
              record = instance.to_dict(include_meta=True)
              if op_type == "delete":
                  del record["_source"]
  
              record["_op_type"] = op_type
              return record
  
          actions = [
              to_dict(instance, op_type)
              for op_type, instance in actions
          ]
          return [
              bulk(
                  client=self.elasticsearch_client,
                  actions=actions_batch,
                  index=self.get_index(**kwargs)._name,
                  raise_on_exception=False,
                  raise_on_error=False,
              ) for actions_batch in self._batch_bulk(
                  actions=actions,
                  batch_size=batch_size,
              )
          ]
code_tokens: def bulk ( self , actions , batch_size , ** kwargs ) : def to_dict ( instance , op_type ) : if instance . id is None : instance . id = self . new_object_id ( ) instance . _id = instance . id instance . _index = self . get_index_name ( ** kwargs ) record = instance . to_dict ( include_meta = True ) if op_type == "delete" : del record [ "_source" ] record [ "_op_type" ] = op_type return record actions = [ to_dict ( instance , op_type ) for op_type , instance in actions ] return [ bulk ( client = self . elasticsearch_client , actions = actions_batch , index = self . get_index ( ** kwargs ) . _name , raise_on_exception = False , raise_on_error = False , ) for actions_batch in self . _batch_bulk ( actions = actions , batch_size = batch_size , ) ]
short_docstring: Bulk index entities
  actions: list of tuples of (action, instance) to be included in the bulk
  batch_size: number of records for each bulk call
short_docstring_tokens: Bulk index entities actions : list of tuples of ( action instance ) to be included in the bulk batch_size : number of records for each bulk call
comment: """
          Bulk index entities
  
          actions: list of tuples of (action, instance) to be included in the bulk
          batch_size: number of records for each bulk call
  
          All errors and exceptions are suppressed and are returned in the response report
  
          """