[ 
https://issues.apache.org/jira/browse/LUCENE-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419042#comment-13419042
 ] 

Karsten R. edited comment on LUCENE-4109 at 7/20/12 3:30 PM:
-------------------------------------------------------------

Patch for lucene/contrib against 
http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_6
The patch adds the Processor BooleanQuery2ModifierNodeProcessor.
The patch also changes ParametricRangeQueryNodeProcessor as hotfix for 
LUCENE-3338 (this change is not for 4.X because LUCENE-3338 is already fixed in 
4.X). 
The patch passes most tests from QueryParserTestBase e.g. except  
{{{assertQueryEquals("[\\* TO \"*\"]",null,"[\\* TO \\*]");}}}
and LUCENE-2566 related tests.
Patch for trunk will coming soon.
                
      was (Author: karsten-solr):
    Patch for lucene/contrib against 
http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_6
The patch adds the Processor BooleanQuery2ModifierNodeProcessor.
The patch also changes ParametricRangeQueryNodeProcessor as hotfix for 
LUCENE-3338 (this change is not for 4.X because LUCENE-3338 is already fixed in 
4.X). 
The patch passes all tests from QueryParserTestBase except  
{{{assertQueryEquals("[\\* TO \"*\"]",null,"[\\* TO \\*]");}}}
and LUCENE-2566 related tests.
Patch for trunk will coming soon.
                  
> BooleanQueries are not parsed correctly with the flexible query parser
> ----------------------------------------------------------------------
>
>                 Key: LUCENE-4109
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4109
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: modules/queryparser
>    Affects Versions: 3.5, 3.6
>            Reporter: Daniel Truemper
>            Assignee: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-4109.patch, LUCENE-4109.patch, test-patch.txt
>
>
> Hi,
> I just found another bug in the flexible query parser (together with Robert 
> Muir, yay!).
> The following query string works in the standard query parser:
> {noformat}
> (field:[1 TO *] AND field:[* TO 2]) AND field2:z
> {noformat}
> yields
> {noformat}
> +(+field:[1 TO *] +field:[* TO 2]) +field2:z
> {noformat}
> The flexible query parser though yields:
> {noformat}
> +(field:[1 TO *] field:[* TO 2]) +field2:z
> {noformat}
> Test patch is attached (from Robert actually).
> I don't know if it affects earlier versions than 3.5.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to