[
https://issues.apache.org/jira/browse/SOLR-12212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cassandra Targett updated SOLR-12212:
-------------------------------------
Component/s: query parsers
> 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
> Components: query parsers
> Affects Versions: 6.6.2, 7.3, 8.0
> Reporter: Michael Braun
> Priority: Major
>
> 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
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]