lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan H√łydahl (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:21:18 GMT

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

Jan H√łydahl commented on SOLR-3744:
-----------------------------------

Have a customer who stumbled upon this recently. Anyone ever found the root cause?

> 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