Hi, this looks also fine. If the generics in the FuzzyRewrite from the last mail are correct, the cast in this rewrite is not needed, too (and DisjunctionMaxQuery implements Iterable, so you can use a simple for-loop):
@Override public Query rewrite(final IndexReader reader, final MultiTermQuery query) throws IOException { DisjunctionMaxQuery dmq = rewrite.rewrite(reader, query); float idfBoost = getQueryBoost(reader, query); for (final Query q : dmq) { q.setBoost(q.getBoost() * idfBoost); } return dmq; } } On the other hand, why not simply boost the whole dmq? Uwe --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org