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

Dismax parser exceptions on trailing OPERATOR

    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-1.4.1.patch
          14 kB
          Johannes
        2. SOLR-874-1.3.patch
          10 kB
          Chris Darroch
        3. SOLR-874.patch
          0.8 kB
          Peter Wolanin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ehatcher Erik Hatcher
              Votes:
              7 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated: