You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2016/07/17 23:10:20 UTC
[jira] [Commented] (SOLR-9312) eDisMax operator "-" ignores
parentheses
[ https://issues.apache.org/jira/browse/SOLR-9312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381568#comment-15381568 ]
Erick Erickson commented on SOLR-9312:
--------------------------------------
Please raise questions like this on the user's list first. They will get more people seeing them. If, through discussion, we determine that it's a bona-fide code issue, _then_ we can raise a JIRA.
In this case it's not clear at all that there is any error. For instance, if every doc that mentions magnetic also mentions flux, the results would be what you report. Solr does not implement strict boolean logic, see:
https://lucidworks.com/blog/2011/12/28/why-not-and-or-and-not/
That said, edismax has had some work done on it lately, have you checked whether a recent 6.x version exhibits the same behavior?
> eDisMax operator "-" ignores parentheses
> ----------------------------------------
>
> Key: SOLR-9312
> URL: https://issues.apache.org/jira/browse/SOLR-9312
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 5.5
> Environment: GNU/Linux 4.6.4-1-ARCH
> Reporter: Patryk Hes
>
> Solr eDisMax query parser seems to ignore parentheses when combined with "-" operator. For example, query:
> -(magnetic flux)
> gives exactly the same results as if querying:
> -magnetic flux
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org