From 866b626f67b177fe5f6438ece16c248acf7972ed Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Fri, 13 Apr 2007 00:59:28 +0000 Subject: [PATCH] minor followup to LUCENE-857, fixing a small mistake in Otis's orriginal commit to ensure that the deprecated QueryFilter still cache's git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@528298 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/QueryFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {