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

IllegalArgumentException in QueryParserBase.parse()

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.10.4
    • None
    • core/queryparser
    • None
    • New

    Description

      I have encountered a very special case where parsing a certain String with the MultiFieldQueryParser causes an IllegalArgumentException thrown in the constructor of org.apache.lucene.util.automaton.RegExp. I would have expected a ParseException instead (as stated in the API doc).

      QueryParser parser = new MultiFieldQueryParser(...);
      parser.parse("/x)/");
      

      The "evil" search string is /x)/.

      Attachments

        Activity

          People

            Unassigned Unassigned
            obecker Oliver Becker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: