I am using haystack django with xapian as a backend search engine. I use FacetedSearchView and FacetedSearchForm to cut over the search. I passed the searchqueryset to FacetSearchView in my urls.py file.
But the problem is that I cannot access this searchqueryset template. All I want to do is count the number of objects found in searchqueryset .
In the shell, I could achieve this using S earchQuerySet().filter(content="foo").count() , how can I do this the same way in the template? Please guide. I want the total number of objects to match the search.
python django xapian django-haystack
tejinderss
source share