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

jdanthinne’s picture

Status: Active » Needs work

You'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.

jdanthinne’s picture

Status: Needs work » Closed (won't fix)

Unfortunately, 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!

grasmash’s picture

Oh well, thanks for looking into it anyway!