You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael Braun (JIRA)" <ji...@apache.org> on 2018/04/11 18:55:00 UTC
[jira] [Created] (SOLR-12212) SolrQueryParser not handling q.op=AND
correctly for parenthesized NOT fq
Michael Braun created SOLR-12212:
------------------------------------
Summary: SolrQueryParser not handling q.op=AND correctly for parenthesized NOT fq
Key: SOLR-12212
URL: https://issues.apache.org/jira/browse/SOLR-12212
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Affects Versions: 6.6.2, 7.3, master (8.0)
Reporter: Michael Braun
Add this to TestSolrQueryParser to demonstrate:
{code}
@Test
public void testDefaultOpAndForFq() {
String query = "id:12";
String fq = "(NOT(eee_s:(Y)))";
assertQ(req("q", query, "fq", fq, "q.op", "AND"), "//*[@numFound='1']");
}
{code}
With q.op = OR, this passes. With q.op = AND, this fails. When the outer parenthesis are removed in the fq, it passes in both cases.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org