LUCENE-8060: ToChildBlockJoinQuery can't delegate getMaxScore but not advanceShallow.

This commit is contained in:
Adrien Grand 2018-08-01 14:33:56 +02:00
parent 3203e99d8f
commit 116309160e
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ public class ToChildBlockJoinQuery extends Query {
@Override
public float getMaxScore(int upTo) throws IOException {
return parentScorer.getMaxScore(DocIdSetIterator.NO_MORE_DOCS);
return Float.POSITIVE_INFINITY;
}
int getParentDoc() {