lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Neumann (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-372) Unmatched right parentheses truncates query
Date Sat, 28 Oct 2006 07:18:17 GMT
     [ 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message