lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3744) Solr LuceneQParser only handles pure negative queries at the top-level query, but not within parenthesized sub-queries
Date Wed, 02 Mar 2016 21:35:18 GMT

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

Jack Krupansky commented on SOLR-3744:
--------------------------------------

Long ago...

I'll try to remember. My vague recollection is that Solr simply fixed the top-level and inherited
the nested behavior from Lucene, but now that Solr has its own copy of the basic query parser
it should be fixable in the base query parser. But... I don't recall where I had tracked that
down to.

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


Mime
View raw message