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

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

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5, 3.6.1
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated: