Index: lucene/src/jsp/results.jsp
===================================================================
--- lucene/src/jsp/results.jsp	(revision 946545)
+++ lucene/src/jsp/results.jsp	(working copy)
@@ -114,8 +114,8 @@
                                                                       // searcher != null was to handle
                                                                       // a weird compilation bug 
                 thispage = maxpage;                                   // default last element to maxpage
-                hits = searcher.search(query, maxpage);                        // run the query 
-                if (hits.totalHits == 0) {                             // if we got no results tell the user
+                hits = searcher.search(query, maxpage + startindex);  // run the query 
+                if (hits.totalHits == 0) {                            // if we got no results tell the user
 %>
                 <p> I'm sorry I couldn't find what you were looking for. </p>
 <%
