facets count per query and not per page

30 views
Skip to first unread message

Mario Menezes

unread,
Apr 27, 2012, 9:15:06 AM4/27/12
to django-...@googlegroups.com
Hi,

  I just found that the facets count changes as I move through the pages of haystack pagination system.

  I also found that even the facets changes, that is, in one page appears 2 facets for "brand"  facet (e.g., Amanco, Tigre) and when I move to the next page, 3 facets appear (e.g., Amanco, Tigre, Tupy). This is because in that page there are products from Tupy brand.

  But what I would like is to offer to my user the real (total) count of found results for each facet over the initial query and that this count does not change from page to page. That is, the count and the facets offered for narrowing should be for the global result and not for the current page.

  Is there a way to do this? Should I override build_page method? Any hint on how to achieve this?

  Thanks in advance and best regards

Mario Menezes
Reply all
Reply to author
Forward
0 new messages