throw UOE from BooleanScorer.getChildren: you cannot use the result since BS doesn't score doc-at-a-time

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1384971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-09-14 23:02:57 +00:00
parent 1ff0eaec90
commit 6904995ce4

View File

@ -345,11 +345,6 @@ final class BooleanScorer extends Scorer {
@Override
public Collection<ChildScorer> getChildren() {
List<ChildScorer> children = new ArrayList<ChildScorer>();
for (SubScorer sub = scorers; sub != null; sub = sub.next) {
// TODO: fix this if BQ ever sends us required clauses
children.add(new ChildScorer(sub.scorer, sub.prohibited ? "MUST_NOT" : "SHOULD"));
}
return children;
throw new UnsupportedOperationException();
}
}