Lucene - Core
  1. Lucene - Core
  2. LUCENE-4454

QueryParser throws exception for string queries ending with ! (exclamation)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5, 3.6.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Query parser does not handle the ! (exclamation point) in the same way as the - (hyphen).

      A string query with the final character being a ! causes a ParseException

      "foo-" OK
      "foo+" OK
      "foo!" ERROR - Parse Exception
      "foo! " OK (trailing white space)

      I am using version 3.5 (have tried 3.6.1 - same issue) I was hoping 2566 may also have fixed this issue

        Activity

        Andrew Gibb created issue -
        Andrew Gibb made changes -
        Field Original Value New Value
        Description Query parser does not handle the ! (exclamation point) in the same way as the - (hyphen).

        A string query with the final character being a ! causes a ParseException

        "foo-" OK
        "foo+" OK
        "foo!" ERROR - Parse Exception
        "foo! " OK

        I am using version 3.5 (have tried 3.6.1 - same issue) I was hoping 2566 may also have fixed this issue
        Query parser does not handle the ! (exclamation point) in the same way as the - (hyphen).

        A string query with the final character being a ! causes a ParseException

        "foo-" OK
        "foo+" OK
        "foo!" ERROR - Parse Exception
        "foo! " OK (trailing white space)

        I am using version 3.5 (have tried 3.6.1 - same issue) I was hoping 2566 may also have fixed this issue

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrew Gibb
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development