LUCENE-7736: CoveringQuery needs to rewrite its ValuesSource.

This commit is contained in:
Adrien Grand 2017-11-22 18:29:47 +01:00
parent 5a2ed01e75
commit 3f0b240853
1 changed files with 1 additions and 1 deletions

View File

@ -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 {