Ahmet, thanks for this, but I do not think this actually meets my requirements. My intent is not that of harcoding the facet field and value I want to exclude, but to be able to apply the exclusion variant regardless (I currently have 3 facet field and ~ 5 million of records). Before posting my question, I had already tried something similar:
solrQuery.set(CommonParams.FQ, “-author:Dickens,Janet”). By trying what you have suggested, I construct the following Solr query: fq=-%7B%21term+f%3Dauthor%7Dickens%3Janet&start=0&rows=10&q=%28Dickens%29&facet=true&facet.mincount=1&facet.limit=20&fl=*%2Cscore&facet.field=author&facet.field=domain&facet.field=content_type&sort=score+desc In this way, the UI will immediately "suppress" the facet value 'Dickens, Janet' even before I click the Refine further option to exclude another value. Thanks for your help, I. -- View this message in context: http://lucene.472066.n3.nabble.com/Filter-query-exclusion-with-SolrJ-tp4119974p4120413.html Sent from the Solr - User mailing list archive at Nabble.com.