Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-161

Dangling dash causes stack trace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.3
    • search
    • None
    • Java 1.5, Tomcat 5.5.17, Fedora Core 4, Intel

    Description

      I'm running tests from our search logs, and we have a query that ends in a dash. That caused a stack trace.

      org.apache.lucene.queryParser.ParseException: Cannot parse 'digging for the truth -': Encountered "<EOF>" at line 1, column 23.
      Was expecting one of:
      "(" ...
      <QUOTED> ...
      <TERM> ...
      <PREFIXTERM> ...
      <WILDTERM> ...
      "[" ...
      "{" ...
      <NUMBER> ...

      at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:127)
      at org.apache.solr.request.DisMaxRequestHandler.handleRequest(DisMaxRequestHandler.java:272)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:595)
      at org.apache.solr.servlet.SolrServlet.doGet(SolrServlet.java:92)

      Attachments

        Issue Links

          Activity

            People

              otis Otis Gospodnetic
              wunder Walter Underwood
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: