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

Method _reset

haystack/backends/__init__.py:1028–1036  ·  view source on GitHub ↗

Resets the instance's internal state to appear as though no query has been run before. Only need to tweak a few variables we check.

(self)

Source from the content-addressed store, hash-verified

1026 return self._clone(using=using)
1027
1028 def _reset(self):
1029 """
1030 Resets the instance's internal state to appear as though no query has
1031 been run before. Only need to tweak a few variables we check.
1032 """
1033 self._results = None
1034 self._hit_count = None
1035 self._facet_counts = None
1036 self._spelling_suggestion = SPELLING_SUGGESTION_HAS_NOT_RUN
1037
1038 def _clone(self, klass=None, using=None):
1039 if using is None:

Callers 4

_fill_cacheMethod · 0.80
narrowMethod · 0.80
test_altparser_queryMethod · 0.80
test_raw_queryMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_altparser_queryMethod · 0.64
test_raw_queryMethod · 0.64