[open-ils-commits] r10860 -
trunk/Open-ILS/src/perlmods/OpenILS/Application/Search
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Oct 17 11:16:20 EDT 2008
Author: erickson
Date: 2008-10-17 11:16:18 -0400 (Fri, 17 Oct 2008)
New Revision: 10860
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
after all search results scanned, we know the exact hit count, so use that instead of the estimated count
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-17 15:16:01 UTC (rev 10859)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-17 15:16:18 UTC (rev 10860)
@@ -877,7 +877,10 @@
last if $current_count >= ($user_limit + $user_offset);
# we've scanned all possible hits
- last if $summary->{checked} < $superpage_size;
+ if($summary->{checked} < $superpage_size) {
+ $est_hit_count = scalar(@$all_results);
+ last;
+ }
}
my @results = grep {defined $_} @$all_results[$user_offset..($user_offset + $user_limit - 1)];
More information about the open-ils-commits
mailing list