You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2009/12/15 21:10:18 UTC
[jira] Commented: (SOLR-1658) Negative query weirdness
[ https://issues.apache.org/jira/browse/SOLR-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790930#action_12790930 ]
Yonik Seeley commented on SOLR-1658:
------------------------------------
I agree. Extended dismax already implements this.
It comes down to needing a flag... sometimes you want pure negative queries (when parsing query parts for example) and sometimes you don't. We should just add a boolean flag to SolrQueryParser.
*But* we don't want to do this for the top level for filter queries - as an optimization, solr currently caches -foo:x the same as foo:x and if we always handled negative queries at the QP level, it would disable that.
> Negative query weirdness
> ------------------------
>
> Key: SOLR-1658
> URL: https://issues.apache.org/jira/browse/SOLR-1658
> Project: Solr
> Issue Type: Bug
> Components: search
> Affects Versions: 1.4
> Reporter: David Bowen
>
> In the standard Solr example, the queries
> # adapter AND NOT power
> # adapter AND (NOT power)
> are different. The second will never return any results. I find this surprising. I think the second query should be the same as the first.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.