MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / update

Method update

haystack/indexes.py:296–308  ·  view source on GitHub ↗

Updates the entire index. If ``using`` is provided, it specifies which connection should be used. Default relies on the routers to decide which backend should be used.

(self, using=None)

Source from the content-addressed store, hash-verified

294 return connections[using].get_backend()
295
296 def update(self, using=None):
297 """
298 Updates the entire index.
299
300 If ``using`` is provided, it specifies which connection should be
301 used. Default relies on the routers to decide which backend should
302 be used.
303 """
304
305 backend = self.get_backend(using)
306
307 if backend is not None:
308 backend.update(self, self.index_queryset(using=using))
309
310 def update_object(self, instance, using=None, **kwargs):
311 """

Callers 15

reindexMethod · 0.95
__setstate__Method · 0.45
get_form_kwargsMethod · 0.45
get_form_kwargsMethod · 0.45
get_context_dataMethod · 0.45
changelist_viewMethod · 0.45
__new__Method · 0.45
update_objectMethod · 0.45
__init__Method · 0.45
get_fieldsMethod · 0.45
build_formMethod · 0.45
get_contextMethod · 0.45

Calls 2

get_backendMethod · 0.95
index_querysetMethod · 0.95

Tested by

no test coverage detected