The Pager on search results will show more pages than 1000 items even though the GSA will never return more than 1000 items.
At first I thought https://drupal.org/node/1518336 was the same problem, but that looks different.
We have a GSA consultant working with us and here is his explanation:
The maximum number of results available for a query is 1,000, i.e., the value of the start parameter
added to the value of the num parameter cannot exceed 1,000.
The URL your are testing is:
http://gsa/search?site=default_collection&oe=utf8&ie=utf8&getfields=*&cl...
So 976 + 25 is 1001, so the query is rejected.
Looking closer at the XML results, note the RES tag states specifically the SN (result start) and EN (result end) values available. When I change this to 975, I see:
Basically this is saying the last actual result is 938, so by starting beyond the EN, it is showing you the last group of 25 results, or less.
So you'll want to be sure your paging logic is driven by the SN and EN values so that you aren't providing "next" page indicators when the "start" value is going to exceed the result EN value. This is how you'll be able to test when you're at the end of the actual results.
We hope to provide a patch for this sometime soon.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | google_appliance-max_results-2103921-d7.patch | 2.3 KB | aaronbauman |
| #1 | 2103921.patch | 2.36 KB | lambic |
Comments
Comment #1
lambic commentedPatch attached
Comment #2
aaronbaumanThis issue still applies to 7.x
Patch attached