Looks fine to me. Please submit a patch file if you'd like this to be adopted.
I had tried it and it is _very_ slow. Try this, it does at least the same. It is not perfect but faster:
<%
int maxPages = 10;
int pageCount = (int)Math.round(hits.getTotal()/(double)hitsPerPage+0.49);
int pageLoops = (int) Math.min(pageCount, maxPages);
int offset = ((start/hitsPerPage)>=10)? ((start/hitsPerPage)/10)*10:0;
%>
<%if(start>=hitsPerPage) {%>
<a href="search.jsp? query=<%=queryString%>&hitsPerPage=<%=hitsPerPage%>&start=<%=(start- hitsPerPage)%>" style="font-face: Arial; font-family: Arial; font-size: 12px; color: #000
000;">previous</a>
<%}%>
<% for (int i = 0+offset; i < pageLoops+offset; i++){ %>
<a href="search.jsp? query=<%=queryString%>&hitsPerPage=<%=hitsPerPage%>&start=<%=(i*hitsPerP age)%>" style="font-face: Arial; font-family: Arial; font-size: 12px; color: #000000;
">
<%if (i==start/hitsPerPage){%><font color="#00AEEF"><%}%>
<%=i+1%>
<%if (i==start/hitsPerPage){%></font><%}%></a><%}%>
<%if(end<hits.getTotal()){%>
<a href="search.jsp? query=<%=queryString%>&hitsPerPage=<%=hitsPerPage%>&start=<%=(start+hits PerPage)%>" style="font-face: Arial; font-family: Arial; font-size: 12px; color: #000000;">ne
xt</a>
<%}%>
--------------------------------------------------------------- enterprise information technology consulting open technology: http://www.media-style.com open source: http://www.weta-group.net open discussion: http://www.text-mining.org
------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Nutch-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nutch-developers
