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)
| 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: |
no outgoing calls