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: <%@ page import = "  javax.servlet.*, javax.servlet.http.*, java.io.*, org.apache.lucene.analysis.*, org.apache.lucene.analysis.standard.StandardAnalyzer, org.apache.lucene.document.*, org.apache.lucene.index.*, org.apache.lucene.search.*, org.apache.lucene.queryParser.*, org.apache.lucene.demo.*, org.apache.lucene.demo.html.Entities, java.net.URLEncoder" %>
  
  <%
  /*
  
negative.code:                                                                       // searcher != null was to handle
                                                                        // a weird compilation bug 
                  thispage = maxpage;                                   // default last element to maxpage
                  hits = searcher.search(query, maxpage);                        // 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>
  <%
  