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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.0.0
    • 2.1
    • modules/examples
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: