You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Oliver Becker (JIRA)" <ji...@apache.org> on 2015/07/29 16:35:05 UTC

[jira] [Created] (LUCENE-6703) IllegalArgumentException in QueryParserBase.parse()

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org