[ http://issues.apache.org/jira/browse/LUCENE-372?page=all ]
Andreas Neumann updated LUCENE-372:
-----------------------------------
Attachment: Lucene-372.patch
This patch contains 5 files (I was not sure whether to include the
JavaCC-generated files, ended up including them):
- QueryParser.jJ: introduced a new nonterminal TopLevelQuery
- QueryParser.java: generated from QueryParser.jj by javaCC
- QueryParserTokenManager.java: generated from QueryParser.jj by javaCC
- TestQueryParser.java: rewrote testException and added a few more tests.
- TestMultiFieldQueryParser.java: fixed testSimple() because it was passing in
unbalanced quotation marks. That caused a failure with the new QueryParser.
- Andreas.
> Unmatched right parentheses truncates query
> -------------------------------------------
>
> Key: LUCENE-372
> URL: http://issues.apache.org/jira/browse/LUCENE-372
> Project: Lucene - Java
> Issue Type: Bug
> Components: QueryParser
> Affects Versions: 1.4
> Environment: Operating System: Linux
> Platform: PC
> Reporter: Patrick Hochstenbach
> Assigned To: Lucene Developers
> Attachments: Lucene-372.patch
>
>
> The query processor truncates a query when right parentheses are unmatched.
> E.g.:
> secret AND illegal) AND access:confidential
> will not result in a ParseException instead will run as:
> secret AND illegal
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]