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

Method run_raw

haystack/backends/__init__.py:624–636  ·  view source on GitHub ↗

Executes a raw query. Returns a list of search results.

(self, **kwargs)

Source from the content-addressed store, hash-verified

622 self._hit_count = results.get("hits", 0)
623
624 def run_raw(self, **kwargs):
625 """Executes a raw query. Returns a list of search results."""
626 search_kwargs = self.build_params()
627 search_kwargs.update(self._raw_query_params)
628
629 if kwargs:
630 search_kwargs.update(kwargs)
631
632 results = self.backend.search(self._raw_query, **search_kwargs)
633 self._results = results.get("results", [])
634 self._hit_count = results.get("hits", 0)
635 self._facet_counts = results.get("facets", {})
636 self._spelling_suggestion = results.get("spelling_suggestion", None)
637
638 def get_count(self):
639 """

Callers 2

get_countMethod · 0.95
get_resultsMethod · 0.95

Calls 4

build_paramsMethod · 0.95
getMethod · 0.80
updateMethod · 0.45
searchMethod · 0.45

Tested by

no test coverage detected