public virtual float SumOfSquaredWeights() { queryWeight = idf * query.GetBoost(); // compute query weight return(queryWeight * queryWeight); // square it }