diff --git a/src/java/org/apache/lucene/search/QueryFilter.java b/src/java/org/apache/lucene/search/QueryFilter.java index f139fd22740..a50f6471fc4 100644 --- a/src/java/org/apache/lucene/search/QueryFilter.java +++ b/src/java/org/apache/lucene/search/QueryFilter.java @@ -25,13 +25,13 @@ package org.apache.lucene.search; * @version $Id$ * @deprecated use a CachingWrapperFilter with QueryWrapperFilter */ -public class QueryFilter extends QueryWrapperFilter { +public class QueryFilter extends CachingWrapperFilter { /** Constructs a filter which only matches documents matching * query. */ public QueryFilter(Query query) { - super(query); + super(new QueryWrapperFilter(query)); } public boolean equals(Object o) {