The answer is to use the double negation proposed by Maurizio In denmark . Mathematically, this is identical to a non-rejected query, however, Solr only understands the double-negation version:
q=-(-PrivacyLevel:2 PrivacyLevel:*)
Note. This also works for filter queries:
fq=-(-PrivacyLevel:2 PrivacyLevel:*)
source share