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

Method get_suggestion

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

Source from the content-addressed store, hash-verified

60 return sqs
61
62 def get_suggestion(self):
63 if not self.is_valid():
64 return None
65
66 return self.searchqueryset.spelling_suggestion(self.cleaned_data["q"])
67
68
69class HighlightedSearchForm(SearchForm):

Callers 3

test_form_suggestionMethod · 0.95
get_contextMethod · 0.80
basic_searchFunction · 0.80

Calls 1

spelling_suggestionMethod · 0.45

Tested by 1

test_form_suggestionMethod · 0.76