On Wed, Mar 2, 2011 at 2:43 PM, Ofer Fort <o...@tra.cx> wrote: > I didn't see this behavior, running solr 1.4.1, was that implemented > after this release?
I think so. It's implemented now in BooleanWeight.scorer() for (Weight w : weights) { BooleanClause c = cIter.next(); Scorer subScorer = w.scorer(context, ScorerContext.def()); if (subScorer == null) { if (c.isRequired()) { return null; } And TermWeight returns null from scorer() if there are no matches for the segment. -Yonik http://lucidimagination.com