lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [01/50] lucene-solr:jira/solr-11458-2: LUCENE-7736: CoveringQuery needs to rewrite its ValuesSource.
Date Mon, 04 Dec 2017 17:48:45 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/jira/solr-11458-2 91c9c6b93 -> 47bd30f80


LUCENE-7736: CoveringQuery needs to rewrite its ValuesSource.


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

Branch: refs/heads/jira/solr-11458-2
Commit: 3f0b240853dac1e9fad3b29042d9aaf6e9f0e634
Parents: 5a2ed01
Author: Adrien Grand <jpountz@gmail.com>
Authored: Wed Nov 22 18:29:47 2017 +0100
Committer: Adrien Grand <jpountz@gmail.com>
Committed: Wed Nov 22 18:34:21 2017 +0100

----------------------------------------------------------------------
 .../sandbox/src/java/org/apache/lucene/search/CoveringQuery.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/3f0b2408/lucene/sandbox/src/java/org/apache/lucene/search/CoveringQuery.java
----------------------------------------------------------------------
diff --git a/lucene/sandbox/src/java/org/apache/lucene/search/CoveringQuery.java b/lucene/sandbox/src/java/org/apache/lucene/search/CoveringQuery.java
index 2890edd..807e1c9 100644
--- a/lucene/sandbox/src/java/org/apache/lucene/search/CoveringQuery.java
+++ b/lucene/sandbox/src/java/org/apache/lucene/search/CoveringQuery.java
@@ -115,7 +115,7 @@ public final class CoveringQuery extends Query {
     for (Query query : queries) {
       weights.add(searcher.createWeight(query, needsScores, boost));
     }
-    return new CoveringWeight(this, weights, minimumNumberMatch);
+    return new CoveringWeight(this, weights, minimumNumberMatch.rewrite(searcher));
   }
 
   private static class CoveringWeight extends Weight {


Mime
View raw message