You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/08/06 04:15:52 UTC

[19/48] lucene-solr:jira/http2: LUCENE-8060: ToChildBlockJoinQuery can't delegate getMaxScore but not advanceShallow.

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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/11630916
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/11630916
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/11630916

Branch: refs/heads/jira/http2
Commit: 116309160e3e4c9df37f60e077126f58bd7e3e8e
Parents: 3203e99
Author: Adrien Grand <jp...@gmail.com>
Authored: Wed Aug 1 14:33:56 2018 +0200
Committer: Adrien Grand <jp...@gmail.com>
Committed: Wed Aug 1 14:42:37 2018 +0200

----------------------------------------------------------------------
 .../java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/11630916/lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java
----------------------------------------------------------------------
diff --git a/lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java b/lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java
index 9de319b..7d9668c 100644
--- a/lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java
+++ b/lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java
@@ -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() {