(self, thing, refresh=None, action='index', parallel=False, **kwargs)
return self._bulk(
            self._get_actions(object_list, action),
            parallel=parallel,
            **kwargs
        )
Update each document in ES for a model, iterable of models or queryset
Update each document in ES for a model, iterable of models or queryset
Update each document in ES for a model iterable of models or queryset
def update(self, thing, refresh=None, action='index', parallel=False, **kwargs):
        """
        Update each document in ES for a model, iterable of models or queryset
        """
        if refresh is not None:
            kwargs['refresh'] = refresh
        elif self.django.auto_refresh:
            kwargs['refresh'] = self.django.auto_refresh

        if isinstance(thing, models.Model):
            object_list = [thing]
        else:
            object_list = thing

        return self._bulk(
            self._get_actions(object_list, action),
            parallel=parallel,
            **kwargs
        )
def update ( self , thing , refresh = None , action = 'index' , parallel = False , * * kwargs ) : if refresh is not None : kwargs [ 'refresh' ] = refresh elif self . django . auto_refresh : kwargs [ 'refresh' ] = self . django . auto_refresh if isinstance ( thing , models . Model ) : object_list = [ thing ] else : object_list = thing return self . _bulk ( self . _get_actions ( object_list , action ) , parallel = parallel , * * kwargs )