> * Add to Searcher the new QueryWeight variants. If you make QueryWeight a subclass of Query, do you need any new methods?
Before Weight existed, only Query and Scorer existed. Compiling a Scorer involved "weighting the query", by factoring IDF etc, then calling query.Scorer(). To make Query objects reusable, Weight was introduced as an intermediate stage. Making QueryWeight a subclass of Query would be entirely within the spirit of the original design, since the role played by Weight was originally performed by a Query. Marvin Humphrey --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org