mirror of https://github.com/apache/lucene.git
LUCENE-7736: CoveringQuery needs to rewrite its ValuesSource.
This commit is contained in:
parent
5a2ed01e75
commit
3f0b240853
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue