Jack Krupansky created SOLR-3744:
------------------------------------
Summary: 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: 4.0-BETA, 3.6.1
Reporter: Jack Krupansky
Fix For: 4.0, 3.6.2
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 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: [email protected]
For additional commands, e-mail: [email protected]