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

Method get_results

haystack/backends/__init__.py:662–679  ·  view source on GitHub ↗

Returns the results received from the backend. If the query has not been run, this will execute the query and store the results.

(self, **kwargs)

Source from the content-addressed store, hash-verified

660 return self._hit_count
661
662 def get_results(self, **kwargs):
663 """
664 Returns the results received from the backend.
665
666 If the query has not been run, this will execute the query and store
667 the results.
668 """
669 if self._results is None:
670 if self._more_like_this:
671 # Special case for MLT.
672 self.run_mlt(**kwargs)
673 elif self._raw_query:
674 # Special case for raw queries.
675 self.run_raw(**kwargs)
676 else:
677 self.run(**kwargs)
678
679 return self._results
680
681 def get_facet_counts(self):
682 """

Callers

nothing calls this directly

Calls 3

run_mltMethod · 0.95
run_rawMethod · 0.95
runMethod · 0.95

Tested by

no test coverage detected