Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Here's the scenario:
Searching term X returns 100 results. 50 are of content type "Story," the other 50 are of type "Page." These are paginated into 10 pages of results.
On page 1, results 1-10 :
5 are of content type "Story"
5 are of content type "Page"
The Filter results will generate links like this:
Story (5)
Page (5)
rather than what it should do:
Story (50)
Page (50)
Comments
Comment #1
jdanthinne CreditAttribution: jdanthinne commentedYou're right. The problem is that Drupal default search paginates results, so this issue needs some work to know how many total results it's getting. Grrr.
Comment #2
jdanthinne CreditAttribution: jdanthinne commentedUnfortunately, after some investigation, the pagination is done deep inside the search module and there's no hook to override that behaviour, and the great rule is not to hack the core. Sad day… I won't display those numbers anymore, because they're wrong!
Comment #3
grasmash CreditAttribution: grasmash commentedOh well, thanks for looking into it anyway!