anchor.diff:                                                                        //query string so you get the 
                                                                         //treatment
   
  -                Analyzer analyzer = new StandardAnalyzer();           //construct our usual analyzer
  +                Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT);           //construct our usual analyzer
                   try {
                           QueryParser qp = new QueryParser("contents", analyzer);
                           query = qp.parse(queryString); //parse the 
  
positive.code:                                                                       // searcher != null was to handle
                                                                        // a weird compilation bug 
                  thispage = maxpage;                                   // default last element to maxpage
                  hits = searcher.search(query);                        // run the query 
                  if (hits.length() == 0) {                             // if we got no results tell the user
  %>
                  <p> I'm sorry I couldn't find what you were looking for. </p>
  <%
  
negative.code: <%
                  }
  %>
  <%                if ( (startindex + maxpage) < hits.totalHits) {   //if there are more results...display 
                                                                     //the more link
  
                          String moreurl="results.jsp?query=" + 
  