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

Method search

haystack/forms.py:129–135  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 selected_facets = forms.CharField(required=False, widget=forms.HiddenInput)
128
129 def search(self):
130 sqs = super().search()
131
132 if hasattr(self, "cleaned_data") and self.cleaned_data["selected_facets"]:
133 sqs = sqs.narrow(self.cleaned_data["selected_facets"])
134
135 return sqs.models(*self.get_models())

Callers

nothing calls this directly

Calls 4

modelsMethod · 0.80
get_modelsMethod · 0.80
searchMethod · 0.45
narrowMethod · 0.45

Tested by

no test coverage detected