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

Method count

haystack/query.py:522–524  ·  view source on GitHub ↗

Returns the total number of matching results.

(self)

Source from the content-addressed store, hash-verified

520 # Methods that do not return a SearchQuerySet.
521
522 def count(self):
523 """Returns the total number of matching results."""
524 return len(self)
525
526 def best_match(self):
527 """Returns the best/top search result that matches the query."""

Callers 15

get_resultsMethod · 0.45
update_backendMethod · 0.45
test_countMethod · 0.45
test_countMethod · 0.45
test_get_countMethod · 0.45
test_index_querysetMethod · 0.45
test_read_querysetMethod · 0.45
test_build_querysetMethod · 0.45
test_countMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_countMethod · 0.36
test_countMethod · 0.36
test_get_countMethod · 0.36
test_index_querysetMethod · 0.36
test_read_querysetMethod · 0.36
test_build_querysetMethod · 0.36
test_countMethod · 0.36
test_more_like_thisMethod · 0.36
test_autocompleteMethod · 0.36