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

Reply via email to