@Override
   public float sumOfSquaredWeights() throws IOException {
        idf = searcher.getSimilarity().idf(searcher.maxDoc(), searcher.maxDoc()); // compute idf
        queryWeight = idf * 1.0f; // boost         // compute query weight
        return queryWeight * queryWeight;           // square it
    }
@ Override public float sumOfSquaredWeights ( ) throws IOException { idf = searcher . getSimilarity ( ) . idf ( searcher . maxDoc ( ) , searcher . maxDoc ( ) ) ; queryWeight = idf * 1.0f ; return queryWeight * queryWeight ; }
{@inheritDoc}