MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / should_update

Method should_update

haystack/indexes.py:375–385  ·  view source on GitHub ↗

Determine if an object should be updated in the index. It's useful to override this when an object may save frequently and cause excessive reindexing. You should check conditions on the instance and return False if it is not to be indexed. By default, retur

(self, instance, **kwargs)

Source from the content-addressed store, hash-verified

373 return None
374
375 def should_update(self, instance, **kwargs):
376 """
377 Determine if an object should be updated in the index.
378
379 It's useful to override this when an object may save frequently and
380 cause excessive reindexing. You should check conditions on the instance
381 and return False if it is not to be indexed.
382
383 By default, returns True (always reindex).
384 """
385 return True
386
387 def load_all_queryset(self):
388 """

Callers 1

update_objectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected