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

Method search

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

Source from the content-addressed store, hash-verified

46 return EmptySearchQuerySet()
47
48 def search(self):
49 if not self.is_valid():
50 return self.no_query_found()
51
52 if not self.cleaned_data.get("q"):
53 return self.no_query_found()
54
55 sqs = self.searchqueryset.auto_query(self.cleaned_data["q"])
56
57 if self.load_all:
58 sqs = sqs.load_all()
59
60 return sqs
61
62 def get_suggestion(self):
63 if not self.is_valid():

Callers 11

test_unboundMethod · 0.95
searchMethod · 0.45
searchMethod · 0.45
searchMethod · 0.45
searchMethod · 0.45
searchMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
form_validMethod · 0.45
get_resultsMethod · 0.45
basic_searchFunction · 0.45

Calls 4

no_query_foundMethod · 0.95
getMethod · 0.80
auto_queryMethod · 0.45
load_allMethod · 0.45

Tested by 1

test_unboundMethod · 0.76