Adding a facet search should clear batch start #12

Closed
mjpieters opened this Issue Feb 6, 2012 · 0 comments

Projects

None yet

1 participant

@mjpieters
Member

When you have searched for a keyword, browsed to another batch in that result set starting at b_start=n, then select a facet with < n results, you end up with an exception, because you send a query to SOLR for a result set start at n and SOLR only returns empty results at that moment.

The easiest solution is to clear b_start when searching for facets.

@mjpieters mjpieters was assigned Feb 6, 2012
@mjpieters mjpieters added a commit that closed this issue Feb 6, 2012
@mjpieters mjpieters Remove a b_start parameter when generating facet urls.
This has the intended effect of resetting the batch to the first page, so we do not error out when a facet leads to a search result set smaller than the current batch page total. Fixes #12.
e9bc855
@mjpieters mjpieters closed this in e9bc855 Feb 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment