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

Method auto_query

haystack/query.py:481–489  ·  view source on GitHub ↗

Performs a best guess constructing the search query. This method is somewhat naive but works well enough for the simple, common cases.

(self, query_string, fieldname="content")

Source from the content-addressed store, hash-verified

479 return clone
480
481 def auto_query(self, query_string, fieldname="content"):
482 """
483 Performs a best guess constructing the search query.
484
485 This method is somewhat naive but works well enough for the simple,
486 common cases.
487 """
488 kwargs = {fieldname: AutoQuery(query_string)}
489 return self.filter(**kwargs)
490
491 def autocomplete(self, **kwargs):
492 """

Callers 15

searchMethod · 0.45
get_resultsMethod · 0.45
test_auto_queryMethod · 0.45
test_valuesMethod · 0.45
test_valueslistMethod · 0.45
test_auto_queryMethod · 0.45
test_values_sqsMethod · 0.45
test_valueslist_sqsMethod · 0.45
test_auto_queryMethod · 0.45
test_spellingMethod · 0.45
test_auto_queryMethod · 0.45

Calls 2

filterMethod · 0.95
AutoQueryClass · 0.90

Tested by 15

test_auto_queryMethod · 0.36
test_valuesMethod · 0.36
test_valueslistMethod · 0.36
test_auto_queryMethod · 0.36
test_values_sqsMethod · 0.36
test_valueslist_sqsMethod · 0.36
test_auto_queryMethod · 0.36
test_spellingMethod · 0.36
test_auto_queryMethod · 0.36
test_spellingMethod · 0.36