Oliver Becker created LUCENE-6703:
-------------------------------------

             Summary: IllegalArgumentException in QueryParserBase.parse()
                 Key: LUCENE-6703
                 URL: https://issues.apache.org/jira/browse/LUCENE-6703
             Project: Lucene - Core
          Issue Type: Bug
          Components: core/queryparser
    Affects Versions: 4.10.4
            Reporter: Oliver Becker


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).

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

The "evil" search string is *{{/x)/}}*.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to