Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-630

results.jsp in luceneweb.war uses unknown parse-Method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1
    • Component/s: modules/examples
    • Labels:
      None
    • Environment:

      Windows XP Pro and Linux (Ubuntu 6.06 TLS)
      Tomcat 5.5
      Sun Java 1.5_07

      Description

      results.jsp in luceneweb.war demo throws JasperException:

      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: 60 in the jsp file: /results.jsp
      Generated servlet error:
      The method parse(String) in the type QueryParser is not applicable for the arguments (String, String, Analyzer)

      I think, the code in line 81 of results.jsp should maybe look like the following ?

      QueryParser qp = new QueryParser("contents", analyzer);
      query = qp.parse(queryString);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              philipreimer Philip Reimer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: