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:
Uwe Schindler 2009-10-19 23:06:19 +00:00
parent 0428efa343
commit 5428780bc5
1 changed files with 2 additions and 2 deletions

View File

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