Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4454

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: 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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: