You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Eran Buchnick (Jira)" <ji...@apache.org> on 2020/03/29 16:45:00 UTC

[jira] [Created] (SOLR-14372) Required operator (+) is being ignored when using default conjunction operator AND

Eran Buchnick created SOLR-14372:
------------------------------------

             Summary: Required operator (+) is being ignored when using default conjunction operator AND
                 Key: SOLR-14372
                 URL: https://issues.apache.org/jira/browse/SOLR-14372
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query parsers
    Affects Versions: 8.3.1
         Environment: rel 7.4

cluster mode
            Reporter: Eran Buchnick


Using solr 8.3.0 it seems like required operator isn't functioning properly when default conjunction operator is AND.

Steps to reproduce:
 * 20 docs
 * all have text field
 * 17 have the value A
 * 13 have the value B
 * 10 have both A and B (the intersection)

 *  default operator is set to AND

 
 * my query is:
{code:java}
+A OR B{code}

 
 * the result is all 20 docs (as if I searched
{code:java}
A OR B{code}
)

 
 * when I change my query to be
{code:java}
{!q.op=OR} +A OR B{code}
I get my expected result which is "A is required B is optional" (which in this case happened to be all 17 docs that includes the value A, some of them includes the value B but none of the not include A!)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org