You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2010/05/20 14:00:16 UTC

svn commit: r946599 - in /lucene/dev/trunk/lucene: CHANGES.txt src/jsp/results.jsp

Author: rmuir
Date: Thu May 20 12:00:15 2010
New Revision: 946599

URL: http://svn.apache.org/viewvc?rev=946599&view=rev
Log:
LUCENE-2473: Clicking on the more results link in luceneweb.war demo results in AIOOBE

Modified:
    lucene/dev/trunk/lucene/CHANGES.txt
    lucene/dev/trunk/lucene/src/jsp/results.jsp

Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=946599&r1=946598&r2=946599&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Thu May 20 12:00:15 2010
@@ -398,6 +398,10 @@ Bug fixes
 * LUCENE-2467: Fixed memory leaks in IndexWriter when large documents
   are indexed.  (Mike McCandless)
 
+* LUCENE-2473: Clicking on the "More Results" link in the luceneweb.war
+  demo resulted in ArrayIndexOutOfBoundsException.  
+  (Sami Siren via Robert Muir)
+
 New features
 
 * LUCENE-2128: Parallelized fetching document frequencies during weight

Modified: lucene/dev/trunk/lucene/src/jsp/results.jsp
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/jsp/results.jsp?rev=946599&r1=946598&r2=946599&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/jsp/results.jsp (original)
+++ lucene/dev/trunk/lucene/src/jsp/results.jsp Thu May 20 12:00:15 2010
@@ -114,7 +114,7 @@ public String escapeHTML(String s) {
                                                                       // searcher != null was to handle
                                                                       // a weird compilation bug 
                 thispage = maxpage;                                   // default last element to maxpage
-                hits = searcher.search(query, maxpage);                        // run the query 
+                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>