1) https://lucidworks.com/blog/why-not-and-or-and-not/
2) use debug=query to understand how your (filter) query is being parsed. : Date: Wed, 22 Apr 2015 14:56:22 +0000 : From: "Dhutia, Devansh" <ddhu...@gannett.com> : Reply-To: solr-user@lucene.apache.org : To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org> : Subject: Boolean filter query not working as expected : : I have an automated filter query builder that uses the SolrNet nuget package to build out boolean filters. I have a scenario where it is generating a fq in the following format: : : ((-(field:V1) AND -(field:V2)) AND -(field:V3)) : The filter looks legal to me (albeit with extra parentheses), but the above yields 0 total results, even though I know eligible data exists. : : If I manually re-write the above filter as : : (-(field:V1) AND -(field:V2) AND -(field:V3)) : I get the expected results. : : I realize the auto generated filter could be rewritten in a different way, but the question still remains, why is the first version not returning any results? : : Solr does not report any errors & returns successfully, just with 0 results. : : Thanks : -Hoss http://www.lucidworks.com/