mirror of
https://github.com/apache/lucene.git
synced 2025-03-04 07:19:18 +00:00
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:
parent
1ff0eaec90
commit
6904995ce4
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user