I am using django haystack with xapian as the backend search engine. I am using FacetedSearchView
and FacetedSearchForm
for faceting over the search. I have passed searchqueryset
to the FacetSearchView
in my urls.py
file.
But the problem is I cannot access that searchqueryset
in template. All I want to do is count the number of objects in searchqueryset
found.
In shell I could achieve it using SearchQuerySet().filter(content="foo").count()
, how can I do that similarly in the template? Please guide. I want the total number of objects matching the search.