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
This commit is contained in:
Michael McCandless 2009-06-25 20:57:11 +00:00
parent 70040e19ec
commit 2e7267478d
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
/**