Hi
A negative query is a subtraction from a set of matched documents. With
(*:* NOT user_id:0) you are subtracting from the set of all documents in
the index first, then intersecting with the documents that match the other
clauses. With (NOT user_id:0) you are subtracting directly from the smaller
Hello,
I think these are relevant
https://cwiki.apache.org/confluence/display/solr/NegativeQueryProblems
https://lucidworks.com/post/solr-boolean-operators/
I think
...)) -user_id:0
is perfect syntax.
On Fri, Jan 6, 2023 at 1:01 PM Changcheng Shao
wrote:
> Hi, Solr team
> I am using Solr 8.11, a