title: How to config Solr to exclude certain documents from search result?
body: <p>To exclude some documents from the search result, I can use the not in or - negative sign to specify the ids like this through a query. </p>
  
  <pre><code>select/?q=*:*&amp;fq=-id:86+-id:338
  </code></pre>
  
  <p>This is ok if there are only a few ids needed to be excluded, but the query will be very very long if I have thousands of ids needed to be excluded from the search. I need to conditionally exclude a list of documents from the search result. How can I do it through solr configuration file such as creating an exclusion list? For example, I need to exclude the documents from search result if usstate is equal to NY, CA, VA, and zip code ending with 3</p>