On 15/05/2008, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > What does your code look like? If you are using Hits, what does > hits.length() give you?
Me code is below: Hits hits = searcher.search(parsedQuery); if (hits.length() == 0) { writer.print("Sorry, no results found. <a href=\"" + request.getSession().getServletContext() .getServletContextName() + "\">Try again</a>?"); error = true; } else { if ((startIndex + maxPage) > hits.length()) { } for (int i = startIndex; i != hits.length(); i++) { final Document document = hits.doc(i); writer.print("<br/>" + document .get("all")) + "<hr/>"); } // iterated through every hit if (searcher != null) searcher.close(); } -- Cheers, Hasan Diwan <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]