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

Dismax parser exceptions on trailing OPERATOR

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3
    • 6.0
    • query parsers
    • None

    Description

      Dismax is supposed to be immune to parse exceptions, but alas it's not:

      http://localhost:8983/solr/select?defType=dismax&qf=name&q=ipod+AND

      kaboom!

      Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse 'ipod AND': Encountered "<EOF>" at line 1, column 8.
      Was expecting one of:
      <NOT> ...
      "+" ...
      "-" ...
      "(" ...
      "*" ...
      <QUOTED> ...
      <TERM> ...
      <PREFIXTERM> ...
      <WILDTERM> ...
      "[" ...
      "{" ...
      <NUMBER> ...
      <TERM> ...
      "*" ...

      at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:175)
      at org.apache.solr.search.DismaxQParser.parse(DisMaxQParserPlugin.java:138)
      at org.apache.solr.search.QParser.getQuery(QParser.java:88)

      Attachments

        1. SOLR-874.patch
          0.8 kB
          Peter Wolanin
        2. SOLR-874-1.3.patch
          10 kB
          Chris Darroch
        3. SOLR-874-1.4.1.patch
          14 kB
          Johannes

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ehatcher Erik Hatcher

            Dates

              Created:
              Updated:

              Slack

                Issue deployment