Removed some redundant code. This is already in BooleanScorer.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149607 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug Cutting 2001-10-10 17:55:04 +00:00
parent cfc5237e20
commit 4e72b89a90
1 changed files with 0 additions and 10 deletions

View File

@ -127,24 +127,14 @@ final public class BooleanQuery extends Query {
BooleanScorer result = new BooleanScorer();
int theMask = 1, thisMask;
for (int i = 0 ; i < clauses.size(); i++) {
BooleanClause c = (BooleanClause)clauses.elementAt(i);
if (c.required || c.prohibited) {
thisMask = theMask;
theMask = theMask << 1;
} else
thisMask = 0;
Scorer subScorer = c.query.scorer(reader);
if (subScorer != null)
result.add(subScorer, c.required, c.prohibited);
else if (c.required)
return null;
}
if (theMask == 0)
throw new IndexOutOfBoundsException
("More than 32 required/prohibited clauses in query.");
return result;
}