My scenario, using faceted search and a views search page:
I do a search and get 200 results.
My views display 30 items at a time, and a pager. A couple of blocks with facets is also shown.
Now, if I use the pager to page 4, and then decide to use one of the facets available that narrow the results to only 40 items, my view become empty.

My current search block still show that my search match 40 results, and another facet block still shows more available facets to narrow the result with.

Maybe the view thinks I'm still on page 4, but the result now fits in two pages and page 4 is blank?

Comments

drunken monkey’s picture

Maybe the view thinks I'm still on page 4, but the result now fits in two pages and page 4 is blank?

Yes, that's exactly it.
But I see that the pager still gets displayed, so this shouldn't be that much of a problem, right?

I also see only one way to more or less fix this – by providing an option that lets a block's facet links always jump back to page 1. Would that be alright?

JockeL’s picture

Strange, my pager won't display. I have an "Empty text" field that is shown, so the view is there, but no pager.

I think it is a good solution to always jump to page 1. That way you don't miss any of the results when adding a new facet (otherwise you could miss a bunch of results that you have not seen when they move to pages before the active page).

drunken monkey’s picture

Status: Active » Fixed

Should be fixed now, please report back if there are still issues.

I just made all facet links jump to page 1, as you suggested — this might be wrong in edge cases, but I guess I can fix that when someone shows up where that actually occurs …

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.