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

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

     [ https://issues.apache.org/jira/browse/SOLR-14372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erick Erickson resolved SOLR-14372.
-----------------------------------
    Resolution: Invalid

First, please raise questions like this on the user's list, we try to reserve JIRAs for known bugs/enhancements rather than usage questions.

See: 
http://lucene.apache.org/solr/community.html#mailing-lists-irc there are links to both Lucene and Solr mailing lists there.

A _lot_ more people will see your question on that list and may be able to help more quickly.

If it's determined that this really is a code issue or enhancement to Lucene or Solr and not a configuration/usage problem, we can raise a new JIRA or reopen this one.

When you do post to the user's list, you should include the results of adding &deubg=query to the post. I suspect that what you're hitting here is URL escaping; the "+" in URL-escape land is a space. Which is really confusing when you use a browser .vs. Solrj for instance. Try %2BA OR B, the URL encoding for a + is %2B.

> 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
>            Priority: Major
>
> 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