[
https://issues.apache.org/jira/browse/SOLR-9211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15336118#comment-15336118
]
Plamen M Todorov commented on SOLR-9211:
----------------------------------------
You are correct, I wasn't aware they are using different parsers. This makes
the issue more with the lucene/dismmax parsers not accepting negatives, but
this is a known limitation. Your query returns no documents both for the q and
fq fields. I also found the commonly used workaround for lucene/dismax is to do
(foo OR (*:* -foo)) which returns all docs which is what I want.
I'll close this issue it appears to be working as expected, given the known
limitations.
> Nested negative clauses don't work as expected in filter queries for the
> edismax parser
> ---------------------------------------------------------------------------------------
>
> Key: SOLR-9211
> URL: https://issues.apache.org/jira/browse/SOLR-9211
> Project: Solr
> Issue Type: Bug
> Affects Versions: 5.4
> Reporter: Plamen M Todorov
>
> Using the edismax parser, the following query works as expected and returns
> all documents:
> CONTENT:(foo OR (-foo))
> The same clause doesn't work in a filter query and returns no documents
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]