Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
69
class
HighlightedSearchForm(SearchForm):
Callers
3
test_form_suggestion
Method · 0.95
get_context
Method · 0.80
basic_search
Function · 0.80
Calls
1
spelling_suggestion
Method · 0.45
Tested by
1
test_form_suggestion
Method · 0.76