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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to