You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Cassandra Targett (Jira)" <ji...@apache.org> on 2021/08/13 21:06:00 UTC
[jira] [Updated] (SOLR-12212) SolrQueryParser not handling q.op=AND
correctly for parenthesized NOT fq
[ 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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org