mirror of https://github.com/apache/lucene.git
fix UOE exc in base Query.createWeight to include this.toString in its message
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1141167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
904e3f73bf
commit
2f50268803
|
@ -88,7 +88,7 @@ public abstract class Query implements Cloneable {
|
|||
* Only implemented by primitive queries, which re-write to themselves.
|
||||
*/
|
||||
public Weight createWeight(IndexSearcher searcher) throws IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
throw new UnsupportedOperationException("Query " + this + " does not implement createWeight");
|
||||
}
|
||||
|
||||
/** Expert: called to re-write queries into primitive queries. For example,
|
||||
|
|
Loading…
Reference in New Issue