mirror of https://github.com/apache/lucene.git
LUCENE-1257: Missed one generification :-(
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@826860 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0428efa343
commit
5428780bc5
|
@ -68,7 +68,7 @@ public abstract class MultiTermQuery extends Query {
|
||||||
|
|
||||||
private static final class ConstantScoreFilterRewrite extends RewriteMethod implements Serializable {
|
private static final class ConstantScoreFilterRewrite extends RewriteMethod implements Serializable {
|
||||||
public Query rewrite(IndexReader reader, MultiTermQuery query) {
|
public Query rewrite(IndexReader reader, MultiTermQuery query) {
|
||||||
Query result = new ConstantScoreQuery(new MultiTermQueryWrapperFilter(query));
|
Query result = new ConstantScoreQuery(new MultiTermQueryWrapperFilter<MultiTermQuery>(query));
|
||||||
result.setBoost(query.getBoost());
|
result.setBoost(query.getBoost());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -237,7 +237,7 @@ public abstract class MultiTermQuery extends Query {
|
||||||
|
|
||||||
if (pendingTerms.size() >= termCountLimit || docVisitCount >= docCountCutoff) {
|
if (pendingTerms.size() >= termCountLimit || docVisitCount >= docCountCutoff) {
|
||||||
// Too many terms -- make a filter.
|
// Too many terms -- make a filter.
|
||||||
Query result = new ConstantScoreQuery(new MultiTermQueryWrapperFilter(query));
|
Query result = new ConstantScoreQuery(new MultiTermQueryWrapperFilter<MultiTermQuery>(query));
|
||||||
result.setBoost(query.getBoost());
|
result.setBoost(query.getBoost());
|
||||||
return result;
|
return result;
|
||||||
} else if (!enumerator.next()) {
|
} else if (!enumerator.next()) {
|
||||||
|
|
Loading…
Reference in New Issue