<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %> <%@ page import="com.ecyrd.jspwiki.*" %> <%@ page import="java.util.Collection" %> <%@ page import="java.net.URLEncoder" %> <%-- FIXME: Get rid of the scriptlets. --%> <% String query = (String)pageContext.getAttribute( "query", PageContext.REQUEST_SCOPE ); if( query == null ) query = ""; String start = (String)request.getParameter("start"); int startVal = 0; try { startVal = Integer.parseInt(start); } catch(Exception e) {} if( startVal < 0 ) startVal = 0; int endVal = startVal + 20; Collection list = (Collection)pageContext.getAttribute( "searchresults", PageContext.REQUEST_SCOPE ); int prevSize = 0, nextSize = 0; if( list != null ) { if( endVal > list.size() ) endVal = list.size(); prevSize = Math.max( startVal, 20 ); nextSize = Math.min(list.size() - endVal, 20); } %>

Find pages

Search results for '<%=query%>'

Found hits, here are the results from <%=startVal+1%> to <%=endVal%>.

Page Score
<% String[] contexts = searchref.getContexts(); if ((contexts != null) && (contexts.length > 0)) { out.println("
"); out.println("
"); for (int i = 0; i < contexts.length; i++) { if (i > 0) out.println(" ... "); out.println(contexts[i]); } out.println("
"); } %>
<%=searchref.getScore()%>
No results

<% if( startVal > 0 ) { %> Get previous <%=prevSize%> results . <% } %> <% if( endVal < list.size() ) { %> Get next <%=nextSize%> results . <% } %>

Try this same search on Google!


" accept-charset="">

Enter your query here: