: But below query does not work : 2. (NOT(IBA60019_l:1) AND NOT(IBA60019_l:0)) AND : businessType:wt.doc.WTDocument
boolean queries must have at least one "positive" expression (ie; MUST or SHOULD) in order to match. the solr query parser tries to help with this and if the *outermost* BooleanQuery doesn't contains only negatived clauses, it adds a match all docs query (ie: *:*) ... but in your case, you have a nested booleanquery which contains only negated clauses ... so you need to included the match all docs query explicitly... +(*:* -IBA60019_l:1 -IBA60019_l:0) +businessType:wt.doc.WTDocument -Hoss