From 2e7267478dc46f86bc5d605360043fa5917e68b2 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 25 Jun 2009 20:57:11 +0000 Subject: [PATCH] LUCENE-1630: call the right createWeight method git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788509 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/Query.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/lucene/search/Query.java b/src/java/org/apache/lucene/search/Query.java index 1d4ae35bb8b..6e08fde4bbe 100644 --- a/src/java/org/apache/lucene/search/Query.java +++ b/src/java/org/apache/lucene/search/Query.java @@ -105,7 +105,7 @@ public abstract class Query implements java.io.Serializable, Cloneable { */ // TODO (3.0): change to throw UnsupportedOperationException. public QueryWeight createQueryWeight(Searcher searcher) throws IOException { - return new QueryWeightWrapper(weight(searcher)); + return new QueryWeightWrapper(createWeight(searcher)); } /**