Solr filter query including NOT and OR
问题 For a filter query in Solr, I need to include all documents not of a certain type, plus any documents of that type which have a value in a certain field. I tried this: fq=(-type_id:(A) OR content:(['' TO *])) But it is excluding documents of type_id B, C, etc. which have null content . ( type_id is a string field and content is text .) I have seen this question: Complex SOLR query including NOT and OR and this post about operators: http://robotlibrarian.billdueber.com/2011/12/solr-and-boolean