Solr
  1. Solr
  2. SOLR-874

Dismax parser exceptions on trailing OPERATOR

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: 5.0
    • Component/s: query parsers
    • Labels:
      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)

      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

          Erik Hatcher made changes -
          Assignee Erik Hatcher [ ehatcher ]
          Fix Version/s 5.0 [ 12321664 ]
          Fix Version/s 4.1 [ 12321141 ]
          Robert Muir made changes -
          Fix Version/s 4.1 [ 12321141 ]
          Fix Version/s 4.0 [ 12322551 ]
          Robert Muir made changes -
          Fix Version/s 4.0 [ 12322551 ]
          Fix Version/s 4.0-BETA [ 12322455 ]
          Hoss Man made changes -
          Fix Version/s 4.0 [ 12322455 ]
          Fix Version/s 4.0-ALPHA [ 12314992 ]
          Robert Muir made changes -
          Fix Version/s 3.6 [ 12319065 ]
          Jan Høydahl made changes -
          Component/s query parsers [ 12317802 ]
          Component/s search [ 12310674 ]
          Simon Willnauer made changes -
          Fix Version/s 3.6 [ 12319065 ]
          Fix Version/s 3.5 [ 12317876 ]
          Robert Muir made changes -
          Fix Version/s 3.5 [ 12317876 ]
          Fix Version/s 3.4 [ 12316683 ]
          Robert Muir made changes -
          Fix Version/s 3.4 [ 12316683 ]
          Fix Version/s 4.0 [ 12314992 ]
          Fix Version/s 3.3 [ 12316471 ]
          Robert Muir made changes -
          Fix Version/s 3.3 [ 12316471 ]
          Fix Version/s 3.2 [ 12316172 ]
          Hoss Man made changes -
          Fix Version/s 3.2 [ 12316172 ]
          Fix Version/s Next [ 12315093 ]
          Erik Hatcher made changes -
          Assignee Erik Hatcher [ ehatcher ]
          Johannes made changes -
          Attachment SOLR-874-1.4.1.patch [ 12469975 ]
          Hoss Man made changes -
          Fix Version/s Next [ 12315093 ]
          Fix Version/s 1.5 [ 12313566 ]
          Chris Darroch made changes -
          Attachment SOLR-874-1.3.patch [ 12425657 ]
          Yonik Seeley made changes -
          Link This issue is blocked by SOLR-1553 [ SOLR-1553 ]
          Shalin Shekhar Mangar made changes -
          Fix Version/s 1.5 [ 12313566 ]
          Trey Grainger made changes -
          Link This issue incorporates SOLR-422 [ SOLR-422 ]
          Trey Grainger made changes -
          Link This issue is blocked by SOLR-422 [ SOLR-422 ]
          Trey Grainger made changes -
          Link This issue is blocked by SOLR-422 [ SOLR-422 ]
          Peter Wolanin made changes -
          Field Original Value New Value
          Attachment SOLR-874.patch [ 12413482 ]
          Erik Hatcher created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Erik Hatcher
            • Votes:
              9 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

              • Created:
                Updated:

                Development