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

Jan Høydahl commented on SOLR-3744:
-----------------------------------

+1
[~jkrupan], could you perhaps create a new LUCENE issue for the BooleanQuery 
proposal and try whip up a patch? That will probably generate more interest 
from the Lucene camp and uncover any negative side effects...

> Solr LuceneQParser only handles pure negative queries at the top-level query, 
> but not within parenthesized sub-queries
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3744
>                 URL: https://issues.apache.org/jira/browse/SOLR-3744
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 3.6.1, 4.0-BETA
>            Reporter: Jack Krupansky
>
> The SolrQuerySyntax wiki says that pure negative queries are supported ("Pure 
> negative queries (all clauses prohibited) are allowed"), which is true at the 
> top-level query, but not for sub-queries enclosed within parentheses.
> See:
> http://wiki.apache.org/solr/SolrQuerySyntax
> Some queries that will not evaluate properly:
> test AND (-fox)
> test (-fox)
> test OR (abc OR (-fox))
> test (-fox)
> Sub-queries combined with the "AND" and "OR" keyword operators also fail to 
> evaluate properly. For example,
> test OR -fox
> -fox OR test
> Note that all of these queries are supported properly by the edismax query 
> parser.



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