mirror of https://github.com/apache/lucene.git
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:
parent
70040e19ec
commit
2e7267478d
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue